docs.unity.cn
    Show / Hide Table of Contents

    Method RemapEntityForPrefab

    RemapEntityForPrefab(Entity*, Entity*, Int32, 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.

    Int32 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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023