VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Types | Public Member Functions | Public Attributes | Properties | Private Member Functions | List of all members
AVR.UI.Link.AVRUI_Link Class Referenceabstract

Binds a given UI element (such as slider, toggle, dropdown or inputfield) with a given property or field of a given MonoBehaviour. One intended use case would be an ingame options-screen to set, for instance, the FOV of a camera. More...

Inheritance diagram for AVR.UI.Link.AVRUI_Link:
AVR.Core.AVR_Behaviour AVR.UI.Link.AVRUI_Link_Dropdown AVR.UI.Link.AVRUI_Link_Inputfield AVR.UI.Link.AVRUI_Link_Slider AVR.UI.Link.AVRUI_Link_TMPDropdown AVR.UI.Link.AVRUI_Link_TMPInputfield AVR.UI.Link.AVRUI_Link_Toggle

Public Types

enum  MemberType { MemberType.FIELD, MemberType.PROPERTY }
 

Public Member Functions

abstract void init ()
 Method is run on program start More...
 
abstract void setup ()
 Method is run when the user selects a field in the inspector. More...
 
abstract void updateValue ()
 This method is executed when the runtime user changes the value of the UI element. This method should change the field on the actual target respectively. More...
 
abstract void updateOutput ()
 Method is run continously from OnGUI. This method should update the value displayed by the UI when the target value changes. More...
 
- Public Member Functions inherited from AVR.Core.AVR_Behaviour
virtual void OnDestroy ()
 

Public Attributes

MonoBehaviour target
 
string field
 
MemberType memberType
 

Properties

abstract List< System.Type > validTypes [get]
 

Private Member Functions

void Start ()
 
void OnGUI ()
 

Additional Inherited Members

- Protected Attributes inherited from AVR.Core.AVR_Behaviour
AVR_PlayerRig playerRig => AVR_PlayerRig.Instance
 The current AVR_PlayerRig instance in the scene More...
 
AVR_Root root => AVR_Root.Instance
 The current AVR_Root instance in the scene More...
 
bool vrEnabled => UnityEngine.XR.XRSettings.enabled
 True if the application is running as a VR/XR application More...
 

Detailed Description

Binds a given UI element (such as slider, toggle, dropdown or inputfield) with a given property or field of a given MonoBehaviour. One intended use case would be an ingame options-screen to set, for instance, the FOV of a camera.

Definition at line 17 of file AVRUI_Link.cs.