Struct SnapshotDataBufferComponentLookup
Helper struct that can be used to inspect the presence of components from a SnapshotData buffer
and retrieve their data.
The lookup can be passed ot jobs
Inherited Members
Namespace: Unity.NetCode.LowLevel
Assembly: solution.dll
Syntax
public struct SnapshotDataBufferComponentLookup
Methods
Name | Description |
---|---|
GetFallbackPredictionMode(in GhostSpawnBuffer) | Retrieve the prediction mode used as fallback if the spawning ghost has not been classified. |
GetGhostOwner(in GhostSpawnBuffer, in DynamicBuffer<SnapshotDataBuffer>) | Retrieve the network id of the player owning the ghost if the ghost archetype has a GhostOwner. |
HasBuffer<T>(int) | Check if the a component of type |
HasComponent<T>(int) | Check if the a component of type |
HasGhostOwner(in GhostSpawnBuffer) | Check if the spawning ghost has a GhostOwner. |
IsOwnerPredicted(in GhostSpawnBuffer) | Check if the spawning ghost mode is owner predicted. |
TryGetComponentDataFromSnapshotHistory<T>(int, in DynamicBuffer<SnapshotDataBuffer>, out T, int) | Try to retrieve the data for a component type |
TryGetComponentDataFromSpawnBuffer<T>(in GhostSpawnBuffer, in DynamicBuffer<SnapshotDataBuffer>, out T) | Try to retrieve the data for a component type |