Show / Hide Table of Contents

Class SampleParameterText

Sample MonoBehaviour which automatically populates a UnityEngine.UI.Text with the value of the parameter defined by paramKey. Shows a defaultString until the plugin is Ready (Ready). Doesn't handle ParameterNotFoundException.

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

Fields

defaultString

The text to show while waiting for the parameter to be loaded.

Declaration
public string defaultString
Field Value
Type Description
string

paramKey

The key of the parameter defined on the back-end for the parameter.

Declaration
public string paramKey
Field Value
Type Description
string

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