Click or drag to resize

UiElement Class

The base class for the immersive UI elements.
Inheritance Hierarchy

Namespace:  RavingBots.MagicGestures.UI.Elements
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class UiElement : MonoBehaviour

The UiElement type exposes the following members.

Constructors
  NameDescription
Protected methodUiElement
Initializes a new instance of the UiElement class
Top
Properties
  NameDescription
Public propertyDisabled
The current disabled state of this element.
Public propertyHover
The current hover state of this element.
Public propertyHoverProgress
The progress of the hover animation.
Public propertyPressed
The current pressed state of this element.
Public propertyPressProgress
The progress of the press animation.
Public propertySelected
The current selected state of this element.
Public propertySelectProgress
The progress of the select animation.
Public propertyShowProgress
The progress of the show/hide animation.
Public propertyState
The current visibility state of this element.
Top
Methods
  NameDescription
Protected methodSetDisabled
Called when the disabled state changes.
Protected methodSetHover
Called when the hover state changes.
Protected methodSetHoverProgress
Called when the hover animation progress changes.
Protected methodSetPressed
Called when the pressed state changes.
Protected methodSetPressProgress
Called when the press animation progress changes.
Protected methodSetSelected
Called when the selected state changes.
Protected methodSetSelectProgress
Called when the select animation progress changes.
Protected methodSetShowProgress
Called when the show/hide animation progress changes.
Protected methodSetState
Called when the visibility state changes.
Public methodSetVisible
Change the visibility of this element.
Protected methodStart
Set the initial state of this element.
Protected methodUpdate
Update the element state.
Top
Events
  NameDescription
Public eventOnPress
The delegate called when the element is pressed.
Top
Fields
  NameDescription
Private field_disabled
The current disabled state of this element.
Private field_hover
The current hover state of this element.
Private field_hoverProgress
The progress of the hover animation.
Private field_pressed
The current pressed state of this element.
Private field_pressProgress
The progress of the press animation.
Private field_selected
The current selected state of this element.
Private field_selectProgress
The progress of the select animation.
Private field_showProgress
The progress of the show/hide animation.
Private field_state
The current visibility state of this element.
Public fieldHideDuration
The duration of the hide animation.
Public fieldHoverOnDuration
The duration of the hover on animation.
Public fieldHoverOutDuration
The duration of the hover out animation.
Public fieldPressDuration
The duration of the press animation.
Public fieldShowDuration
The duration of the show animation.
Top
See Also