docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemapEntity

    RemapEntity(ref NativeArray<EntityRemapInfo>, Entity)

    Remaps a source Entity using the EntityRemapUtility.EntityRemapInfo array.

    Declaration
    public static Entity RemapEntity(ref NativeArray<EntityRemapUtility.EntityRemapInfo> remapping, Entity source)
    Parameters
    Type Name Description
    NativeArray<EntityRemapUtility.EntityRemapInfo> remapping

    The array of EntityRemapUtility.EntityRemapInfo used to perform the remapping.

    Entity source

    The source Entity to remap.

    Returns
    Type Description
    Entity

    Returns the remapped Entity ID if it is valid in the current world, otherwise returns Entity.Null.

    RemapEntity(EntityRemapInfo*, Entity)

    Remaps an entity using the EntityRemapUtility.EntityRemapInfo array.

    Declaration
    public static Entity RemapEntity(EntityRemapUtility.EntityRemapInfo* remapping, Entity source)
    Parameters
    Type Name Description
    EntityRemapInfo* remapping

    The array of EntityRemapUtility.EntityRemapInfo used to perform the remapping.

    Entity source

    The source Entity to remap.

    Returns
    Type Description
    Entity

    Returns the remapped Entity ID if it is valid in the current world, otherwise returns Entity.Null.

    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)