Show / Hide Table of Contents

Class OnlyShowIfIsOwner

A useful MonoBehaviour which (on startup) sets a gameobject active or inactive depending on if the current user is an admin/owner of the game.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
PlayURBehaviour
OnlyShowIfIsOwner
Inherited Members
PlayURBehaviour.PlayURPlugin
PlayURBehaviour.Configuration
PlayURBehaviour.IsReady
PlayURBehaviour.CurrentExperiment
PlayURBehaviour.CurrentExperimentGroup
Namespace: PlayUR
Assembly: Assembly-CSharp.dll
Syntax
public class OnlyShowIfIsOwner : PlayURBehaviour

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