StateVisualizer.AddAnimationTargetToState(String, GameObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The newly created AnimationTarget for a state container