Property | Type | Description | |
---|---|---|---|
CloneContextProperty | PropertyKey |
Method | Description | |
---|---|---|
Clone ( Entity entity ) : Entity |
Clones the specified entity. Entity, children Entity and their EntityComponent will be cloned. Other assets will be shared.
|
|
Clone ( Prefab prefab ) : Prefab |
Clones the specified prefab. Entity, children Entity and their EntityComponent will be cloned. Other assets will be shared.
|
Method | Description | |
---|---|---|
Clone ( HashSet clonedObjects, TryGetValueFunction mappedObjects, entity ) : T |
Clones the specified object, taking special care of Entity, EntityComponent and external assets. User can optionally provides list of cloned objects (list of data reference objects that should be cloned) and mapped objects (list of data reference objects that should be ducplicated using the given instance).
|
|
ClonedObjects ( ) : HashSet | ||
CollectEntityTreeHelper ( Entity entity, HashSet entityAndComponents ) : void |
Collect entities and components recursively from an entity and add them to a hashset.
|
public static Clone ( Entity entity ) : Entity | ||
entity | Entity | The entity. |
return | Entity |
public static Clone ( Prefab prefab ) : Prefab | ||
prefab | Prefab | The prefab to clone. |
return | Prefab |