BasicPressableButtonVisuals Class

Definition

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
Inheritance
UnityEngine.MonoBehaviour
BasicPressableButtonVisuals
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.ExecuteAlwaysAttribute UnityEngine.RequireComponentAttribute

Constructors

Properties

MovingVisuals

The "front plate" object that will move with the button displacement.

Methods

UpdateMovingVisualsPosition()

Update the local position of the specified MovingVisuals transform.

Applies to

Proizvod Verzije
MRTK3 UX Core 3.0, 3.1, 3.2