ComponentCloner.md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs

ComponentCloner Class

Exposes a way to clone one Entity components to an other.

public class ComponentCloner

Inheritance System.Object ๐Ÿก’ ComponentCloner

Constructors
ComponentCloner()Initialize a new instance of the ComponentCloner type.
Methods
Clone(Entity, Entity)Clones one Entity components to an other.
OnComponent<T>(T, bool)Handles the component of type T from the source Entity.
Set<T>(T, bool)Sets the given component on the copied entity.