StateVisualizer.AddAnimationTargetToState(String, GameObject) Method

Definition

Add an animation target to a state container. An animation target contains a reference to the target game object and a list of the animatable properties associated with the target.

public:
 Microsoft::MixedReality::Toolkit::Experimental::StateVisualizer::AnimationTarget ^ AddAnimationTargetToState(System::String ^ stateName, UnityEngine::GameObject ^ target);
public Microsoft.MixedReality.Toolkit.Experimental.StateVisualizer.AnimationTarget AddAnimationTargetToState (string stateName, UnityEngine.GameObject target);
member this.AddAnimationTargetToState : string * UnityEngine.GameObject -> Microsoft.MixedReality.Toolkit.Experimental.StateVisualizer.AnimationTarget
Public Function AddAnimationTargetToState (stateName As String, target As GameObject) As AnimationTarget

Parameters

stateName
String

The name of the state container

target
UnityEngine.GameObject

The target game object to add

Returns

AnimationTarget

The newly created AnimationTarget for a state container

Applies to