Show / Hide Table of Contents

Class SampleParameterList

Sample MonoBehaviour which automatically populates a UnityEngine.UI.Text with a random value from 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
SampleParameterList
Inherited Members
PlayURBehaviour.PlayURPlugin
PlayURBehaviour.Configuration
PlayURBehaviour.IsReady
PlayURBehaviour.CurrentExperiment
PlayURBehaviour.CurrentExperimentGroup
PlayURBehaviour.OnReady()
Namespace: PlayUR.Samples
Assembly: Assembly-CSharp.dll
Syntax
public class SampleParameterList : 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

GetNextRandomText()

Get a random entry from the given list

Declaration
public void GetNextRandomText()

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