Class UnityLifeCycleEventCapture
An event that represents an event that occurs to a monobehavior instance.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RecordAndPlay
Assembly: RecordAndPlay.dll
Syntax
[Serializable]
public class UnityLifeCycleEventCapture : Capture
Constructors
UnityLifeCycleEventCapture(Single, UnityLifeCycleEvent)
Create a new UnityLifeCycleEventCapture.
Declaration
public UnityLifeCycleEventCapture(float time, UnityLifeCycleEvent lifeCycleEvent)
Parameters
Type | Name | Description |
---|---|---|
System.Single | time | The time the event occured in the recording. |
UnityLifeCycleEvent | lifeCycleEvent | The lifecycle event that occured |
Properties
LifeCycleEvent
The lifecycle event captured at some point in time.
Declaration
public UnityLifeCycleEvent LifeCycleEvent { get; }
Property Value
Type | Description |
---|---|
UnityLifeCycleEvent |
Methods
SetTime(Single)
Creates a new UnityLifeCycleEventCapture with lifecycle event but with a modified time, leaving the original event unchanged.
Declaration
public override Capture SetTime(float newTime)
Parameters
Type | Name | Description |
---|---|---|
System.Single | newTime | The new time the event occured in the recording. |
Returns
Type | Description |
---|---|
Capture | A entirely new capture that occured with the time passed in. |
Overrides
ToCSV()
Builds a string that represents a single row in a csv file that contains this object's data.
Declaration
public override string ToCSV()
Returns
Type | Description |
---|---|
System.String | A row of csv data as a string. |
Overrides
ToJSON()
Builds a JSON string that represents the UnityLifeCycleEventCapture object.
Declaration
public override string ToJSON()
Returns
Type | Description |
---|---|
System.String | A JSON string. |