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...
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... | |
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.