{!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 RemapEntityForPrefab | Entities | 1.2.0-exp.3
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method RemapEntityForPrefab

    RemapEntityForPrefab(Entity*, Entity*, int, Entity)

    Remaps the internal Entity references when instantiating a prefab.

    Declaration
    public static Entity RemapEntityForPrefab(Entity* remapSrc, Entity* remapDst, int remappingCount, Entity source)
    Parameters
    Type Name Description
    Entity* remapSrc

    The source array of entity references.

    Entity* remapDst

    The array of target entities.

    int remappingCount

    The size of the source and target arrays.

    Entity source

    The source entity to remap.

    Returns
    Type Description
    Entity

    If the source Entity is found in the remapSrc array, it is remapped. Otherwise, returns the source Entity.

    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)