Editar

Compartir a través de


AppBar Class

Definition

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

public ref class AppBar : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/AppBar")]
public class AppBar : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/AppBar")>]
type AppBar = class
    inherit MonoBehaviour
Public Class AppBar
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
AppBar
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

AppBar()

Properties

AdjustIcon

The adjust button texture

BackgroundBar

The background gameobject, scales to fill area behind buttons

BaseRenderer

The parent game object for the renderable objects in the AppBar

ButtonDepth

The button depth for each button

ButtonParent

The parent transform for the button collection

ButtonWidth

The button width for each button

DisplayType

The AppBar's display type; default is Manipulation

DoneIcon

The done button texture

HideIcon

The hide button 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

HoverOffsetZ

Pushes the app bar away from the object

RemoveIcon

The remove button texture

ShowIcon

The show button texture

State

The AppBar's current state

Target

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

UseAdjust

Should the AppBar have an adjust button

UseHide

Should the AppBar have a hide button

UseRemove

Should the AppBar have a remove button

UseTightFollow

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

Methods

GetButtonTextAndIconFromType(AppBar+ButtonTypeEnum, String, Texture, Int32)
OnButtonPressed(AppBarButton)
OnClickRemove()
Reset()

Applies to