ドキュメント

Unity Engine

Download Unity

Unity Engine

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

Remaps the internal Entity references when instantiating a prefab.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.