docs.unity3d.com
    Show / Hide Table of Contents

    Method GetComponentTypes

    GetComponentTypes(Allocator)

    Gets the types of the components making up this archetype.

    Declaration
    public NativeArray<ComponentType> GetComponentTypes(Allocator allocator = Allocator.Temp)
    Parameters
    Type Name Description
    Allocator allocator

    The allocation type to use for the returned NativeArray.

    Returns
    Type Description
    NativeArray<ComponentType>

    A native array containing the ComponentType objects of this archetype.

    Remarks

    The set of component types in an archetype cannot change; adding components to an entity or removing components from an entity changes the archetype of that entity (possibly resulting in the creation of a new archetype). The original archetype remains unchanged.

    Back to top
    Terms of use
    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