docs.unity3d.com
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 © 2024 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)