Class AppBar
Logic for the App Bar. Generates buttons, manages states.
Assembly: cs.temp.dll.dll
public class AppBar : MonoBehaviour
Properties
The adjust button texture
Declaration
public Texture AdjustIcon { get; set; }
Property Value
The background gameobject, scales to fill area behind buttons
Declaration
public GameObject BackgroundBar { get; set; }
Property Value
Type |
Description |
GameObject |
|
The parent game object for the renderable objects in the AppBar
Declaration
public GameObject BaseRenderer { get; set; }
Property Value
Type |
Description |
GameObject |
|
The button depth for each button
Declaration
public float ButtonDepth { get; set; }
Property Value
The parent transform for the button collection
Declaration
public Transform ButtonParent { get; set; }
Property Value
Type |
Description |
Transform |
|
The button width for each button
Declaration
public float ButtonWidth { get; set; }
Property Value
The AppBar's display type; default is Manipulation
Declaration
public AppBar.AppBarDisplayTypeEnum DisplayType { get; set; }
Property Value
Declaration
public Texture DoneIcon { get; set; }
Property Value
Declaration
public Texture HideIcon { get; set; }
Property Value
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
Pushes the app bar away from the object
Declaration
public float HoverOffsetZ { get; set; }
Property Value
The remove button texture
Declaration
public Texture RemoveIcon { get; set; }
Property Value
Declaration
public Texture ShowIcon { get; set; }
Property Value
The AppBar's current state
Declaration
public AppBar.AppBarStateEnum State { get; set; }
Property Value
Object the app bar is controlling - This object must implement the IBoundsTargetProvider.
Declaration
public MonoBehaviour Target { get; set; }
Property Value
Type |
Description |
MonoBehaviour |
|
Should the AppBar have an adjust button
Declaration
public bool UseAdjust { get; set; }
Property Value
Should the AppBar have a hide button
Declaration
public bool UseHide { get; set; }
Property Value
Should the AppBar have a remove button
Declaration
public bool UseRemove { get; set; }
Property Value
Uses an alternate follow style that works better for very oblong objects
Declaration
public bool UseTightFollow { get; set; }
Property Value
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
Declaration
public void OnButtonPressed(AppBarButton button)
Parameters
Declaration
protected virtual void OnClickRemove()
Declaration