C# Class Xenko.Engine.Design.EntityCloner

Afficher le fichier Open project: xen2/stride

Méthodes publiques

Свойство Type Description
CloneContextProperty PropertyKey

Méthodes publiques

Méthode 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.

Private Methods

Méthode 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.

Method Details

Clone() public static méthode

Clones the specified entity. Entity, children Entity and their EntityComponent will be cloned. Other assets will be shared.
public static Clone ( Entity entity ) : Entity
entity Entity The entity.
Résultat Entity

Clone() public static méthode

Clones the specified prefab. Entity, children Entity and their EntityComponent will be cloned. Other assets will be shared.
public static Clone ( Prefab prefab ) : Prefab
prefab Prefab The prefab to clone.
Résultat Prefab

Property Details

CloneContextProperty public_oe static_oe property

public static PropertyKey CloneContextProperty
Résultat PropertyKey