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.
Inherited Members
Namespace: PlayUR.Samples
Assembly: Assembly-CSharp.dll
Syntax
public class SampleParameterText : PlayURBehaviourFields
defaultString
The text to show while waiting for the parameter to be loaded.
Declaration
public string defaultStringField Value
| Type | Description | 
|---|---|
| string | 
paramKey
The key of the parameter defined on the back-end for the parameter.
Declaration
public string paramKeyField 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
Start()
The standard Unity Start callback function. If overriding, must call base.Start() if you wish to use OnReady().
Declaration
public override void Start()