All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Attributes | List of all members
GenericBaker Class Reference

Baker for Generic/Legacy animation. More...

Inheritance diagram for GenericBaker:
Inheritance graph
[legend]
Collaboration diagram for GenericBaker:
Collaboration graph
[legend]

Public Attributes

bool markAsLegacy
 If true, produced AnimationClips will be marked as Legacy and usable with the Legacy animation system. More...
 
Transform root
 Root Transform of the hierarchy to bake. More...
 
Transform rootNode
 Root Node used for root motion. More...
 
Transform[] ignoreList
 List of Transforms to ignore, rotation curves will not be baked for these Transforms. More...
 
Transform[] bakePositionList
 LocalPosition curves will be baked for these Transforms only. If you are baking a character, the pelvis bone should be added to this array. More...
 
- Public Attributes inherited from Baker
int frameRate = 30
 In AnimationClips, AnimationStates or PlayableDirector mode - the frame rate at which the animation clip will be sampled. In Realtime mode - the frame rate at which the pose will be sampled. With the latter, the frame rate is not guaranteed if the player is not able to reach it. More...
 
float keyReductionError = 0.01f
 Maximum allowed error for keyframe reduction. More...
 
Mode mode
 AnimationClips mode can be used to bake a batch of AnimationClips directly without the need of setting up an AnimatorController. AnimationStates mode is useful for when you need to set up a more complex rig with layers and AvatarMasks in Mecanim. PlayableDirector mode bakes a Timeline. Realtime mode is for continuous baking of gameplay, ragdoll phsysics or PuppetMaster dynamics. More...
 
AnimationClip[] animationClips = new AnimationClip[0]
 AnimationClips to bake. More...
 
string[] animationStates = new string[0]
 The name of the AnimationStates to bake (must be on the base layer) in the Animator (Right-click on this component header and select 'Find Animation States' to have Baker fill those in automatically, required that state names match with the names of the clips used in them). More...
 
string saveToFolder = "Assets"
 The folder to save the baked AnimationClips to. More...
 
string appendName = "_Baked"
 String that will be added to each clip or animation state name for the saved clip. For example if your animation state/clip names were 'Idle' and 'Walk', then with '_Baked' as Append Name, the Baker will create 'Idle_Baked' and 'Walk_Baked' animation clips. More...
 
string saveName = "Baked Clip"
 Name of the created AnimationClip file. More...
 
bool inheritClipSettings
 If enabled, baked clips will have the same AnimationClipSettings as the clips used for baking. If disabled, clip settings from below will be applied to all the baked clips. More...
 
ClipSettings clipSettings
 AnimationClipSettings applied to the baked animation clip. More...
 

Detailed Description

Baker for Generic/Legacy animation.