Class OnlyShowIfElementIsEnabled
A useful MonoBehaviour which (on startup) sets a gameobject active or inactive depending on the existence of the referenced elementToCheck. If the Element is not enabled for this user, then the object is set to inactive.
Inheritance
Object
Component
Behaviour
MonoBehaviour
OnlyShowIfElementIsEnabled
Inherited Members
Namespace: PlayUR
Assembly: Assembly-CSharp.dll
Syntax
public class OnlyShowIfElementIsEnabled : PlayURBehaviour
Fields
elementToCheck
Declaration
public Element elementToCheck
Field Value
Type | Description |
---|---|
Element |
Methods
OnReady()
Override this method to do something when the plugin is ready. Implementation is that this function is the registered callback to PlayURPlugin.instance.OnReady. This registration takes place in Start().
Declaration
public override void OnReady()
Overrides
Start()
The standard Unity Start callback function. If overriding, must call base.Start() if you wish to use OnReady().
Declaration
public override void Start()