docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    IBufferElementData
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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

    Implements

    Unity.Entities.IBufferElementData
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)