Creates a copy of current EntityRecord with all of its components in the given World using the given ComponentCloner.
public DefaultEcs.Command.EntityRecord CopyTo(DefaultEcs.World world, DefaultEcs.ComponentCloner cloner);
world
World
The World instance to which copy current EntityRecord and its components.
cloner
ComponentCloner
The ComponentCloner to use to copy the components.
EntityRecord
The created EntityRecord in the given World.
System.ArgumentNullException
world or cloner was null.