Class SampleParameterInt
Sample MonoBehaviour which spawns a number of prefabs equal to the value of the parameter defined by parameterKey. 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 SampleParameterInt : PlayURBehaviour
Fields
offset
The offset to add between each spawned prefab
Declaration
public Vector2 offset
Field Value
Type | Description |
---|---|
Vector2 |
parameterKey
The key of the parameter defined on the back-end for the parameter.
Declaration
public string parameterKey
Field Value
Type | Description |
---|---|
string |
prefabToSpawn
The prefab to spawn repeatedly.
Declaration
public GameObject prefabToSpawn
Field Value
Type | Description |
---|---|
GameObject |
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()