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.
Inherited Members
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()