Struct GhostCollectionComponentIndex
This list contains the set of entity + component for all serialization rules in GhostCollectionPrefabSerializer. GhostCollectionPrefabSerializer contains a FirstComponent and NumComponents which identifies the set of components to use from this array. Added to the GhostCollection singleton entity.
Implements
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[InternalBufferCapacity(0)]
public struct GhostCollectionComponentIndex : IBufferElementData
Fields
ComponentIndex
Index in the GhostCollectionComponentIndex, used to retrieve the component type from the DynamicTypeHandle.
Declaration
public int ComponentIndex
Field Value
Type | Description |
---|---|
int |
ComponentSize
Size of the component.
Declaration
public int ComponentSize
Field Value
Type | Description |
---|---|
int |
EntityIndex
Index of ghost entity the rule applies to.
Declaration
public int EntityIndex
Field Value
Type | Description |
---|---|
int |
SendMask
Current send mask for that component, used to not send/receive components in some configuration.
Declaration
public GhostSendType SendMask
Field Value
Type | Description |
---|---|
GhostSendType |
SendToOwner
Current owner mask for that component, used to not send/receive components in some configuration.
Declaration
public SendToOwnerType SendToOwner
Field Value
Type | Description |
---|---|
SendToOwnerType |
SerializerIndex
Index in the GhostComponentSerializer.State collection, used to get the type of serializer to use.
Declaration
public int SerializerIndex
Field Value
Type | Description |
---|---|
int |
SnapshotSize
Size of the component in the snapshot buffer.
Declaration
public int SnapshotSize
Field Value
Type | Description |
---|---|
int |
TypeIndex
The TypeIndex the component.
Declaration
public int TypeIndex
Field Value
Type | Description |
---|---|
int |