Class PositionOffsetStateAnimatableProperty
The PositionOffset animatable property adds/sets keyframes for the "localPosition" property in an animation clip.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Experimental.StateVisualizer
Assembly: cs.temp.dll.dll
Syntax
public class PositionOffsetStateAnimatableProperty : StateAnimatableProperty, IStateAnimatableProperty
Constructors
PositionOffsetStateAnimatableProperty()
Constructor for a Position Offset Animatable Property. Sets the default AnimatablePropertyName.
Declaration
public PositionOffsetStateAnimatableProperty()
Properties
PositionOffset
The position offset added to the current position of the target object.
Declaration
public Vector3 PositionOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
RemoveKeyFrames(AnimationClip)
Removes the keyframes in an animation clip.
Declaration
public override void RemoveKeyFrames(AnimationClip animationClip)
Parameters
Type | Name | Description |
---|---|---|
Animation |
animationClip | The animation clip for keyframe removal |
Overrides
SetKeyFrames(AnimationClip)
Sets the keyframes in an animation clip based on the values of the animatable properties.
Declaration
public override void SetKeyFrames(AnimationClip animationClip)
Parameters
Type | Name | Description |
---|---|---|
Animation |
animationClip | The animation clip to add keyframes to |