Documentation

Unity Engine

Download Unity

Unity Engine

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

Remaps the internal Entity references when instantiating a prefab.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static Entity RemapEntityForPrefab(Entity* remapSrc, Entity* remapDst, int remappingCount, Entity source)

Parameters

remapSrc

The source array of entity references.

remapDst

The array of target entities.

remappingCount

The size of the source and target arrays.

source

The source entity to remap.

Returns

Type

Description

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