Difference between revisions of "DOMAnimationController"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMAnimationController class)
(Documentation for the DOMAnimationController class)
Line 7: Line 7:
 
===Properties===
 
===Properties===
 
:{{CSharp|bool AnimatorApplyRootMotion {get; set;} }}
 
:{{CSharp|bool AnimatorApplyRootMotion {get; set;} }}
 +
::
 +
::True if the animations in this animation controller are intended to apply root motion
  
 
:{{CSharp|bool HasLocomotion {get; set;} }}
 
:{{CSharp|bool HasLocomotion {get; set;} }}
 +
::
 +
::True if this animation controller has locomotion animations in it
  
 
:{{CSharp|int PaceCount {get; set;} }}
 
:{{CSharp|int PaceCount {get; set;} }}
 +
::
 +
::Keeps track of the number of locomotion states that represent paces (walking, jogging, running, super-running) for example. This is a hacky hint to clients, so they know which forward movement states exist in this controller.
  
 
:{{CSharp|string ResourceName {get; set;} }}
 
:{{CSharp|string ResourceName {get; set;} }}

Revision as of 17:43, 20 February 2017

Represents an animation controller that can affect one or more skeletons defined by DOMControllers. A DOMAnimationController node can be placed in the DOM as a direct child of a DOMController in which case it automatically affects that animatable skeleton, or it can be placed somewhere else in the scene and referenced by setting the DOMController's AnimationControllerID property to the ID of this node. This allows multiple characters or objects to be animated by the same animation controller.

Remarks [edit]

Properties

bool AnimatorApplyRootMotion {get; set;}
True if the animations in this animation controller are intended to apply root motion
bool HasLocomotion {get; set;}
True if this animation controller has locomotion animations in it
int PaceCount {get; set;}
Keeps track of the number of locomotion states that represent paces (walking, jogging, running, super-running) for example. This is a hacky hint to clients, so they know which forward movement states exist in this controller.
string ResourceName {get; set;}
The name of the animation controller prefab in the Unity asset bundle
ResourceValue ResourceUri {get; set;}
The ResourceValue of the Unity animation controller asset bundle

Constructors

DOMAnimationController()