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

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

    Show / Hide Table of Contents

    Class AppBar

    Logic for the App Bar. Generates buttons, manages states.

    Inheritance
    Object
    AppBar
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class AppBar : MonoBehaviour

    Properties

    AdjustIcon

    The adjust button texture

    Declaration
    public Texture AdjustIcon { get; set; }
    Property Value
    Type Description
    Texture

    BackgroundBar

    The background gameobject, scales to fill area behind buttons

    Declaration
    public GameObject BackgroundBar { get; set; }
    Property Value
    Type Description
    GameObject

    BaseRenderer

    The parent game object for the renderable objects in the AppBar

    Declaration
    public GameObject BaseRenderer { get; set; }
    Property Value
    Type Description
    GameObject

    ButtonDepth

    The button depth for each button

    Declaration
    public float ButtonDepth { get; set; }
    Property Value
    Type Description
    Single

    ButtonParent

    The parent transform for the button collection

    Declaration
    public Transform ButtonParent { get; set; }
    Property Value
    Type Description
    Transform

    ButtonWidth

    The button width for each button

    Declaration
    public float ButtonWidth { get; set; }
    Property Value
    Type Description
    Single

    DisplayType

    The AppBar's display type; default is Manipulation

    Declaration
    public AppBar.AppBarDisplayTypeEnum DisplayType { get; set; }
    Property Value
    Type Description
    AppBar.AppBarDisplayTypeEnum

    DoneIcon

    The done button texture

    Declaration
    public Texture DoneIcon { get; set; }
    Property Value
    Type Description
    Texture

    HideIcon

    The hide button texture

    Declaration
    public Texture HideIcon { get; set; }
    Property Value
    Type Description
    Texture

    HoverOffsetYScale

    Where to display the app bar on the y axis This can be set to negative values to force the app bar to appear below the object

    Declaration
    public float HoverOffsetYScale { get; set; }
    Property Value
    Type Description
    Single

    HoverOffsetZ

    Pushes the app bar away from the object

    Declaration
    public float HoverOffsetZ { get; set; }
    Property Value
    Type Description
    Single

    RemoveIcon

    The remove button texture

    Declaration
    public Texture RemoveIcon { get; set; }
    Property Value
    Type Description
    Texture

    ShowIcon

    The show button texture

    Declaration
    public Texture ShowIcon { get; set; }
    Property Value
    Type Description
    Texture

    State

    The AppBar's current state

    Declaration
    public AppBar.AppBarStateEnum State { get; set; }
    Property Value
    Type Description
    AppBar.AppBarStateEnum

    Target

    Object the app bar is controlling - This object must implement the IBoundsTargetProvider.

    Declaration
    public MonoBehaviour Target { get; set; }
    Property Value
    Type Description
    MonoBehaviour

    UseAdjust

    Should the AppBar have an adjust button

    Declaration
    public bool UseAdjust { get; set; }
    Property Value
    Type Description
    Boolean

    UseHide

    Should the AppBar have a hide button

    Declaration
    public bool UseHide { get; set; }
    Property Value
    Type Description
    Boolean

    UseRemove

    Should the AppBar have a remove button

    Declaration
    public bool UseRemove { get; set; }
    Property Value
    Type Description
    Boolean

    UseTightFollow

    Uses an alternate follow style that works better for very oblong objects

    Declaration
    public bool UseTightFollow { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    GetButtonTextAndIconFromType(AppBar.ButtonTypeEnum, out String, out Texture, out Int32)

    Declaration
    public void GetButtonTextAndIconFromType(AppBar.ButtonTypeEnum type, out string buttonText, out Texture buttonIcon, out int displayOrder)
    Parameters
    Type Name Description
    AppBar.ButtonTypeEnum type
    String buttonText
    Texture buttonIcon
    Int32 displayOrder

    OnButtonPressed(AppBarButton)

    Declaration
    public void OnButtonPressed(AppBarButton button)
    Parameters
    Type Name Description
    AppBarButton button

    OnClickRemove()

    Declaration
    protected virtual void OnClickRemove()

    Reset()

    Declaration
    public void Reset()
    Back to top Generated by DocFX