Class VectorCapture
An event that is meant to store a vector value that was present at some point in time. Used to represent things such as position and rotation.
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)
Namespace: RecordAndPlay
Assembly: RecordAndPlay.dll
Syntax
[Serializable]
public class VectorCapture : Capture
Constructors
VectorCapture(Single, Vector3)
Creates a new capture of a vector value in a point in time.
Declaration
public VectorCapture(float time, Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Single | time | A point in time the vector was observed. |
UnityEngine.Vector3 | vector | The value of the vector observed. |
Properties
Vector
The value of the vector captured at some point in time.
Declaration
public Vector3 Vector { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Methods
SetTime(Single)
Creates a new VectorCapture with the vector value 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 VectorCapture object.
Declaration
public override string ToJSON()
Returns
Type | Description |
---|---|
System.String | A JSON string. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()