文档

Unity Engine

Download Unity

Unity Engine

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

Remaps the internal Entity references when instantiating a prefab.
阅读时间1 分钟最后更新于 19 天前

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.