Method TryGetComponentDataFromSpawnBuffer
TryGetComponentDataFromSpawnBuffer<T>(in GhostSpawnBuffer, in DynamicBuffer<SnapshotDataBuffer>, out T)
Try to retrieve the data for a component type
Declaration
public bool TryGetComponentDataFromSpawnBuffer<T>(in GhostSpawnBuffer ghost, in DynamicBuffer<SnapshotDataBuffer> snapshotData, out T componentData) where T : unmanaged, IComponentData
Parameters
Type | Name | Description |
---|---|---|
GhostSpawnBuffer | ghost | |
DynamicBuffer<SnapshotDataBuffer> | snapshotData | |
T | componentData |
Returns
Type | Description |
---|---|
bool | True if the component is present and the component data is initialized. False otherwise |
Type Parameters
Name | Description |
---|---|
T |
Remarks
Buffers aren't supported.
Only component present on the root entity can be retrieved. Trying to get data for component in a child entity is not supported.