StateVisualizer Class
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.
A high-performance Playables API-powered interaction feedback system with extensible effects. Requires StatefulInteractable and an Animator.
[UnityEngine.AddComponentMenu("MRTK/UX/State Visualizer")]
[UnityEngine.RequireComponent(typeof(UnityEngine.Animator))]
public class StateVisualizer : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/State Visualizer")>]
[<UnityEngine.RequireComponent(typeof(UnityEngine.Animator))>]
type StateVisualizer = class
inherit MonoBehaviour
Public Class StateVisualizer
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourStateVisualizer
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute
Constructors
| Name | Description |
|---|---|
| StateVisualizer() | |
Properties
| Name | Description |
|---|---|
| Animator |
The Animator to be used as the output for the Playable graph. |
| Interactable |
The connected interactable. |
Methods
| Name | Description |
|---|---|
| EnsureDefaultStates() |
Ensures that the default states are present. |
| Start() |
A Unity event function that is called on the frame when a script is enabled just before any of the update methods are called the first time. |
| UpdateStateValues() |
Sets the parameter value on each state. Override + extend this method to implement custom state parameters. |