Class PressableButtonHoloLens2
HoloLens 2 shell's style button specific elements
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class PressableButtonHoloLens2 : PressableButton, IMixedRealityTouchHandler, MonoBehaviour
Properties
CompressableButtonVisuals
The visuals which become compressed (scaled) along the z-axis when pressed.
Declaration
public GameObject CompressableButtonVisuals { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
CompressableButtonVisuals
The visuals which become compressed (scaled) along the z-axis when pressed.
Declaration
public GameObject CompressableButtonVisuals { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
MinCompressPercentage
The minimum percentage of the original scale the compressableButtonVisuals can be compressed to.
Declaration
public float MinCompressPercentage { get; set; }
Property Value
Type | Description |
---|---|
Single |
MinCompressPercentage
The minimum percentage of the original scale the compressableButtonVisuals can be compressed to.
Declaration
public float MinCompressPercentage { get; set; }
Property Value
Type | Description |
---|---|
Single |
MovingButtonIconText
Public property to set the moving content part(icon and text) of the button. This content part moves 1/2 distance of the front cage
Declaration
public GameObject MovingButtonIconText { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
MovingButtonIconText
Public property to set the moving content part(icon and text) of the button. This content part moves 1/2 distance of the front cage
Declaration
public GameObject MovingButtonIconText { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
AnimateInHighlightPlate()
Animates in the highlight plate.
Declaration
public void AnimateInHighlightPlate()
AnimateInHighlightPlate()
Animates in the highlight plate.
Declaration
public void AnimateInHighlightPlate()
AnimateOutHighlightPlate()
Animates out the highlight plate and disables it when animated out.
Declaration
public void AnimateOutHighlightPlate()
AnimateOutHighlightPlate()
Animates out the highlight plate and disables it when animated out.
Declaration
public void AnimateOutHighlightPlate()
Start()
Declaration
protected override void Start()
Overrides
Start()
Declaration
protected override void Start()
Overrides
UpdateMovingVisualsPosition()
Declaration
protected override void UpdateMovingVisualsPosition()
Overrides
UpdateMovingVisualsPosition()
Declaration
protected override void UpdateMovingVisualsPosition()