Class AnalyticsCustom
Example code showing how to record Actions with and without extra meta data.
Inherited Members
Namespace: PlayUR.Samples
Assembly: Assembly-CSharp.dll
Syntax
public class AnalyticsCustom : PlayURBehaviour
Fields
bounceAction
The action to trigger when a collision happens Note, no default value set as Action enum values may become invalid.
Declaration
public Action bounceAction
Field Value
Type | Description |
---|---|
Action |
column
The anayltics column to store metadata (time) in. Note, no default value set as Action enum values may become invalid.
Declaration
public AnalyticsColumn column
Field Value
Type | Description |
---|---|
AnalyticsColumn |
initialVelocity
Declaration
public Vector2 initialVelocity
Field Value
Type | Description |
---|---|
Vector2 |
Methods
OnCollisionEnter(Collision)
Declaration
public void OnCollisionEnter(Collision collision)
Parameters
Type | Name | Description |
---|---|---|
Collision | collision |
Start()
The standard Unity Start callback function. If overriding, must call base.Start() if you wish to use OnReady().
Declaration
public override void Start()