BasicPressableButtonVisuals Class
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.
C#
[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
Moving |
The "front plate" object that will move with the button displacement. |
Update |
Update the local position of the specified MovingVisuals transform. |
Proizvod | Verzije |
---|---|
MRTK3 UX Core | 3.0, 3.1, 3.2 |