Struct Trajectory
Data type to be used in a task graph that represents a trajectory.
Syntax
[Data("Trajectory", DataFlags.SelfInputOutput)]
public struct Trajectory : IDebugObject, Serializable, IDisposable, IDebugDrawable
Fields
allocator
Declaration
public Allocator allocator
Field Value
Declaration
public NativeArray<AffineTransform> transforms
Field Value
Properties
debugIdentifier
Declaration
public DebugIdentifier debugIdentifier { get; set; }
Property Value
Implements
Item[Int32]
Declaration
public AffineTransform this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| Int32 |
index |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
Methods
Create(Int32, Allocator)
Declaration
public static Trajectory Create(int length, Allocator allocator)
Parameters
Returns
Dispose()
Declaration
Draw(Camera, ref MotionSynthesizer, DebugMemory, SamplingTime, ref DebugDrawOptions)
Declaration
public void Draw(Camera camera, ref MotionSynthesizer synthesizer, DebugMemory debugMemory, SamplingTime debugSamplingTime, ref DebugDrawOptions options)
Parameters
Implements
ReadFromStream(Buffer)
Declaration
public void ReadFromStream(Buffer buffer)
Parameters
| Type |
Name |
Description |
| Buffer |
buffer |
|
Implements
WriteToStream(Buffer)
Declaration
public void WriteToStream(Buffer buffer)
Parameters
| Type |
Name |
Description |
| Buffer |
buffer |
|
Implements
Operators
Declaration
public static implicit operator NativeSlice<AffineTransform>(Trajectory trajectory)
Parameters
Returns