Struct ArchetypeChunk | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ArchetypeChunk

    Namespace: Unity.Entities
    Syntax
    public struct ArchetypeChunk : IEquatable<ArchetypeChunk>

    Properties

    Archetype

    Declaration
    public EntityArchetype Archetype { get; }
    Property Value
    Type Description
    EntityArchetype

    Capacity

    Declaration
    public int Capacity { get; }
    Property Value
    Type Description
    System.Int32

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Full

    Declaration
    public bool Full { get; }
    Property Value
    Type Description
    System.Boolean

    Null

    Declaration
    public static ArchetypeChunk Null { get; }
    Property Value
    Type Description
    ArchetypeChunk

    Methods

    DidChange<T>(ArchetypeChunkBufferType<T>, UInt32)

    Declaration
    public bool DidChange<T>(ArchetypeChunkBufferType<T> chunkBufferType, uint version)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    ArchetypeChunkBufferType<T> chunkBufferType
    System.UInt32 version
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    DidChange<T>(ArchetypeChunkComponentType<T>, UInt32)

    Declaration
    public bool DidChange<T>(ArchetypeChunkComponentType<T> chunkComponentType, uint version)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    System.UInt32 version
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    DidChange<T>(ArchetypeChunkSharedComponentType<T>, UInt32)

    Declaration
    public bool DidChange<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData, uint version)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    ArchetypeChunkSharedComponentType<T> chunkSharedComponentData
    System.UInt32 version
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Equals(Object)

    Declaration
    public override bool Equals(object compare)
    Parameters
    Type Name Description
    System.Object compare
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(ArchetypeChunk)

    Declaration
    public bool Equals(ArchetypeChunk archetypeChunk)
    Parameters
    Type Name Description
    ArchetypeChunk archetypeChunk
    Returns
    Type Description
    System.Boolean

    GetBufferAccessor<T>(ArchetypeChunkBufferType<T>)

    Declaration
    public BufferAccessor<T> GetBufferAccessor<T>(ArchetypeChunkBufferType<T> bufferComponentType)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    ArchetypeChunkBufferType<T> bufferComponentType
    Returns
    Type Description
    BufferAccessor<T>
    Type Parameters
    Name Description
    T

    GetChunkComponentData<T>(ArchetypeChunkComponentType<T>)

    Declaration
    public T GetChunkComponentData<T>(ArchetypeChunkComponentType<T> chunkComponentType)
        where T : struct
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetComponentObjects<T>(ArchetypeChunkComponentType<T>, EntityManager)

    Declaration
    public ArchetypeChunkComponentObjects<T> GetComponentObjects<T>(ArchetypeChunkComponentType<T> componentType, EntityManager manager)
        where T : class
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> componentType
    EntityManager manager
    Returns
    Type Description
    ArchetypeChunkComponentObjects<T>
    Type Parameters
    Name Description
    T

    GetComponentVersion<T>(ArchetypeChunkBufferType<T>)

    Declaration
    public uint GetComponentVersion<T>(ArchetypeChunkBufferType<T> chunkBufferType)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    ArchetypeChunkBufferType<T> chunkBufferType
    Returns
    Type Description
    System.UInt32
    Type Parameters
    Name Description
    T

    GetComponentVersion<T>(ArchetypeChunkComponentType<T>)

    Declaration
    public uint GetComponentVersion<T>(ArchetypeChunkComponentType<T> chunkComponentType)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    Returns
    Type Description
    System.UInt32
    Type Parameters
    Name Description
    T

    GetComponentVersion<T>(ArchetypeChunkSharedComponentType<T>)

    Declaration
    public uint GetComponentVersion<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    ArchetypeChunkSharedComponentType<T> chunkSharedComponentData
    Returns
    Type Description
    System.UInt32
    Type Parameters
    Name Description
    T

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    GetNativeArray(ArchetypeChunkEntityType)

    Declaration
    public NativeArray<Entity> GetNativeArray(ArchetypeChunkEntityType archetypeChunkEntityType)
    Parameters
    Type Name Description
    ArchetypeChunkEntityType archetypeChunkEntityType
    Returns
    Type Description
    NativeArray<Entity>

    GetNativeArray<T>(ArchetypeChunkComponentType<T>)

    Declaration
    public NativeArray<T> GetNativeArray<T>(ArchetypeChunkComponentType<T> chunkComponentType)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    Returns
    Type Description
    NativeArray<T>
    Type Parameters
    Name Description
    T

    GetSharedComponentData<T>(ArchetypeChunkSharedComponentType<T>, EntityManager)

    Declaration
    public T GetSharedComponentData<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData, EntityManager entityManager)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    ArchetypeChunkSharedComponentType<T> chunkSharedComponentData
    EntityManager entityManager
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetSharedComponentIndex<T>(ArchetypeChunkSharedComponentType<T>)

    Declaration
    public int GetSharedComponentIndex<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    ArchetypeChunkSharedComponentType<T> chunkSharedComponentData
    Returns
    Type Description
    System.Int32
    Type Parameters
    Name Description
    T

    Has<T>(ArchetypeChunkBufferType<T>)

    Declaration
    public bool Has<T>(ArchetypeChunkBufferType<T> chunkBufferType)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    ArchetypeChunkBufferType<T> chunkBufferType
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Has<T>(ArchetypeChunkComponentType<T>)

    Declaration
    public bool Has<T>(ArchetypeChunkComponentType<T> chunkComponentType)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Has<T>(ArchetypeChunkSharedComponentType<T>)

    Declaration
    public bool Has<T>(ArchetypeChunkSharedComponentType<T> chunkComponentType)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    ArchetypeChunkSharedComponentType<T> chunkComponentType
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    HasChunkComponent<T>(ArchetypeChunkComponentType<T>)

    Declaration
    public bool HasChunkComponent<T>(ArchetypeChunkComponentType<T> chunkComponentType)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Invalid()

    Declaration
    public bool Invalid()
    Returns
    Type Description
    System.Boolean

    Locked()

    Returns true if Chunk is Locked

    Declaration
    public bool Locked()
    Returns
    Type Description
    System.Boolean

    NumSharedComponents()

    Declaration
    public int NumSharedComponents()
    Returns
    Type Description
    System.Int32

    SetChunkComponentData<T>(ArchetypeChunkComponentType<T>, T)

    Declaration
    public void SetChunkComponentData<T>(ArchetypeChunkComponentType<T> chunkComponentType, T value)
        where T : struct
    Parameters
    Type Name Description
    ArchetypeChunkComponentType<T> chunkComponentType
    T value
    Type Parameters
    Name Description
    T

    Operators

    Equality(ArchetypeChunk, ArchetypeChunk)

    Declaration
    public static bool operator ==(ArchetypeChunk lhs, ArchetypeChunk rhs)
    Parameters
    Type Name Description
    ArchetypeChunk lhs
    ArchetypeChunk rhs
    Returns
    Type Description
    System.Boolean

    Inequality(ArchetypeChunk, ArchetypeChunk)

    Declaration
    public static bool operator !=(ArchetypeChunk lhs, ArchetypeChunk rhs)
    Parameters
    Type Name Description
    ArchetypeChunk lhs
    ArchetypeChunk rhs
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023