日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class PressableButtonHoloLens2

    HoloLens 2 shell's style button specific elements

    Inheritance
    Object
    PressableButton
    PressableButtonHoloLens2
    Implements
    IMixedRealityTouchHandler
    Inherited Members
    PressableButton.movingButtonVisuals
    PressableButton.DistanceSpaceMode
    PressableButton.startPushDistance
    PressableButton.StartPushDistance
    PressableButton.MaxPushDistance
    PressableButton.PressDistance
    PressableButton.ReleaseDistanceDelta
    PressableButton.ReleaseOnTouchEnd
    PressableButton.EnforceFrontPush
    PressableButton.TouchBegin
    PressableButton.TouchEnd
    PressableButton.ButtonPressed
    PressableButton.ButtonReleased
    PressableButton.CurrentPushDistance
    PressableButton.IsTouching
    PressableButton.IsPressing
    PressableButton.LocalToWorldScale
    PressableButton.GetWorldPositionAlongPushDirection(Single)
    PressableButton.GetLocalPositionAlongPushDirection(Single)
    PressableButton.GetDistanceAlongPushDirection(Vector3)
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class PressableButtonHoloLens2 : PressableButton, IMixedRealityTouchHandler

    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

    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

    Methods

    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()

    Start()

    Declaration
    protected override void Start()
    Overrides
    PressableButton.Start()

    UpdateMovingVisualsPosition()

    Declaration
    protected override void UpdateMovingVisualsPosition()
    Overrides
    PressableButton.UpdateMovingVisualsPosition()

    Implements

    IMixedRealityTouchHandler
    Back to top Generated by DocFX