{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method CollectAllComponents | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
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)