BasicPressableButtonVisuals 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 simple visuals script to provide a visual layer on top of a PressableButton.
[UnityEngine.AddComponentMenu("MRTK/UX/Basic Pressable Button Visuals")]
[UnityEngine.ExecuteAlways]
[UnityEngine.RequireComponent(typeof(MixedReality.Toolkit.UX.PressableButton))]
public class BasicPressableButtonVisuals : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Basic Pressable Button Visuals")>]
[<UnityEngine.ExecuteAlways>]
[<UnityEngine.RequireComponent(typeof(MixedReality.Toolkit.UX.PressableButton))>]
type BasicPressableButtonVisuals = class
inherit MonoBehaviour
Public Class BasicPressableButtonVisuals
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourBasicPressableButtonVisuals
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.ExecuteAlwaysAttribute UnityEngine.RequireComponentAttribute
Constructors
| Name | Description |
|---|---|
| BasicPressableButtonVisuals() | |
Properties
| Name | Description |
|---|---|
| MovingVisuals |
The "front plate" object that will move with the button displacement. |
Methods
| Name | Description |
|---|---|
| UpdateMovingVisualsPosition() |
Update the local position of the specified MovingVisuals transform. |