docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method CollectAllComponents

    CollectAllComponents(EntityManager, NativeArray<Entity>, out NativeList<ComponentType>, out NativeArray<int>)

    Helper method to build a list of all component types on all children of a ghost prefab, should not be called directly.

    Declaration
    public static void CollectAllComponents(EntityManager entityManager, NativeArray<Entity> linkedEntities, out NativeList<ComponentType> allComponents, out NativeArray<int> componentCounts)
    Parameters
    Type Name Description
    EntityManager entityManager

    Used to add components data on ghost children.

    NativeArray<Entity> linkedEntities

    Linked entities, 0 is the root followed by its children. Each will be marked with GhostChildEntity

    NativeList<ComponentType> allComponents

    Populated with root and child components.

    NativeArray<int> componentCounts

    Populated with each ghost's number of components.

    In This Article
    Back to top
    Copyright © 2023 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)