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. |