Language
Edit

BasicPressableButtonVisuals Class

Definition

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.MonoBehaviour
BasicPressableButtonVisuals
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.

Applies to