Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Tools.MMAnimationCurveGenerator Class Reference

This class will let you create and save a .curves asset in the specified path This asset will include curves (anti or not) from the MMTween library, to use anywhere animation curves are required More...

Inheritance diagram for MoreMountains.Tools.MMAnimationCurveGenerator:

Public Member Functions

virtual void GenerateAnimationCurvesAsset ()
 Generates the asset and saves it at the requested path More...
 

Public Attributes

string AnimationCurveFilePath = "Assets/MMTools/MMTween/Editor/"
 the path to save the asset at More...
 
string AnimationCurveFileName = "MMCurves.curves"
 the name of the asset More...
 
int Resolution = 50
 the dots resolution (higher is better) More...
 
bool GenerateAntiCurves = false
 whether to generate anti curves (y goes from 1 to 0) or regular ones (y goes from 0 to 1) More...
 
bool GenerateAnimationCurvesButton
 

Protected Member Functions

virtual void CreateAnimationCurve (ScriptableObject asset, MMTween.MMTweenCurve curveType, int curveResolution, bool anti)
 Creates an animation curve of the specified type and resolution, and adds it to the specified asset More...
 

Protected Attributes

Type _scriptableObjectType
 
Keyframe _keyframe = new Keyframe()
 
MethodInfo _addMethodInfo
 
object[] _parameters
 

Detailed Description

This class will let you create and save a .curves asset in the specified path This asset will include curves (anti or not) from the MMTween library, to use anywhere animation curves are required

Member Function Documentation

◆ CreateAnimationCurve()

virtual void MoreMountains.Tools.MMAnimationCurveGenerator.CreateAnimationCurve ( ScriptableObject  asset,
MMTween.MMTweenCurve  curveType,
int  curveResolution,
bool  anti 
)
protectedvirtual

Creates an animation curve of the specified type and resolution, and adds it to the specified asset

Parameters
asset
curveType
curveResolution
anti

◆ GenerateAnimationCurvesAsset()

virtual void MoreMountains.Tools.MMAnimationCurveGenerator.GenerateAnimationCurvesAsset ( )
virtual

Generates the asset and saves it at the requested path

Member Data Documentation

◆ _addMethodInfo

MethodInfo MoreMountains.Tools.MMAnimationCurveGenerator._addMethodInfo
protected

◆ _keyframe

Keyframe MoreMountains.Tools.MMAnimationCurveGenerator._keyframe = new Keyframe()
protected

◆ _parameters

object [] MoreMountains.Tools.MMAnimationCurveGenerator._parameters
protected

◆ _scriptableObjectType

Type MoreMountains.Tools.MMAnimationCurveGenerator._scriptableObjectType
protected

◆ AnimationCurveFileName

string MoreMountains.Tools.MMAnimationCurveGenerator.AnimationCurveFileName = "MMCurves.curves"

the name of the asset

◆ AnimationCurveFilePath

string MoreMountains.Tools.MMAnimationCurveGenerator.AnimationCurveFilePath = "Assets/MMTools/MMTween/Editor/"

the path to save the asset at

◆ GenerateAnimationCurvesButton

bool MoreMountains.Tools.MMAnimationCurveGenerator.GenerateAnimationCurvesButton

◆ GenerateAntiCurves

bool MoreMountains.Tools.MMAnimationCurveGenerator.GenerateAntiCurves = false

whether to generate anti curves (y goes from 1 to 0) or regular ones (y goes from 0 to 1)

◆ Resolution

int MoreMountains.Tools.MMAnimationCurveGenerator.Resolution = 50

the dots resolution (higher is better)


The documentation for this class was generated from the following file: