Class SnapshotDataUtility
Inheritance
System.Object
SnapshotDataUtility
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: Unity.NetCode
Syntax
public static class SnapshotDataUtility
Methods
GetDataAtTick<T>(DynamicBuffer<T>, UInt32, out T)
Declaration
public static bool GetDataAtTick<T>(this DynamicBuffer<T> snapshotArray, uint targetTick, out T snapshotData)
where T : struct, ISnapshotData<T>
Parameters
| Type | Name | Description |
|---|---|---|
| DynamicBuffer<T> | snapshotArray | |
| System.UInt32 | targetTick | |
| T | snapshotData |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |
GetDataAtTick<T>(DynamicBuffer<T>, UInt32, Single, out T)
Declaration
public static bool GetDataAtTick<T>(this DynamicBuffer<T> snapshotArray, uint targetTick, float targetTickFraction, out T snapshotData)
where T : struct, ISnapshotData<T>
Parameters
| Type | Name | Description |
|---|---|---|
| DynamicBuffer<T> | snapshotArray | |
| System.UInt32 | targetTick | |
| System.Single | targetTickFraction | |
| T | snapshotData |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |
GetLatestTick<T>(DynamicBuffer<T>)
Declaration
public static uint GetLatestTick<T>(this DynamicBuffer<T> snapshotArray)
where T : struct, ISnapshotData<T>
Parameters
| Type | Name | Description |
|---|---|---|
| DynamicBuffer<T> | snapshotArray |
Returns
| Type | Description |
|---|---|
| System.UInt32 |
Type Parameters
| Name | Description |
|---|---|
| T |