Class AnimationRandomizerTag
Used in conjunction with a AnimationRandomizer to select a random animation frame for the tagged game object
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Perception.Randomization.Randomizers.Tags
Assembly: Unity.Perception.Runtime.dll
Syntax
[RequireComponent(typeof(Animator))]
[AddComponentMenu("Perception/RandomizerTags/Animation Randomizer Tag")]
[MovedFrom("UnityEngine.Perception.Randomization.Randomizers.SampleRandomizers.Tags")]
public class AnimationRandomizerTag : RandomizerTag
Fields
animationClips
A list of animation clips from which to choose
Declaration
public CategoricalParameter<AnimationClip> animationClips
Field Value
Type | Description |
---|---|
CategoricalParameter<AnimationClip> |
applyRootMotion
Apply the root motion to the animator. If true, if an animation has a rotation translation and/or rotation that will be applied to the labeled model, which means that the model maybe move to a new position. If false, then the model will stay at its current position/rotation.
Declaration
public bool applyRootMotion
Field Value
Type | Description |
---|---|
bool |
Properties
animatorOverrideController
Gets the animation override controller for an animation randomization. The controller is loaded from resources.
Declaration
public AnimatorOverrideController animatorOverrideController { get; }
Property Value
Type | Description |
---|---|
AnimatorOverrideController |