Show / Hide Table of Contents

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
Object
Component
Behaviour
MonoBehaviour
PlayURBehaviour
OnlyShowIfElementIsEnabled
Inherited Members
PlayURBehaviour.PlayURPlugin
PlayURBehaviour.Configuration
PlayURBehaviour.IsReady
PlayURBehaviour.CurrentExperiment
PlayURBehaviour.CurrentExperimentGroup
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
PlayURBehaviour.OnReady()

Start()

The standard Unity Start callback function. If overriding, must call base.Start() if you wish to use OnReady().

Declaration
public override void Start()
Overrides
PlayURBehaviour.Start()
In This Article
Back to top Generated by DocFX