Method GetGhostOwner
GetGhostOwner(in GhostSpawnBuffer, in DynamicBuffer<SnapshotDataBuffer>)
Retrieve the network id of the player owning the ghost if the ghost archetype has a GhostOwner.
Declaration
public int GetGhostOwner(in GhostSpawnBuffer ghost, in DynamicBuffer<SnapshotDataBuffer> data)
Parameters
Type | Name | Description |
---|---|---|
GhostSpawnBuffer | ghost | |
DynamicBuffer<SnapshotDataBuffer> | data |
Returns
Type | Description |
---|---|
int | the id of the player owning the ghost, if the GhostOwner is present, 0 otherwise. |