Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 2.04 KB

EntityRecord.CopyTo(World,ComponentCloner).md

File metadata and controls

32 lines (20 loc) · 2.04 KB

EntityRecord.CopyTo(World, ComponentCloner) Method

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);

Parameters

world World

The World instance to which copy current EntityRecord and its components.

cloner ComponentCloner

The ComponentCloner to use to copy the components.

Returns

EntityRecord
The created EntityRecord in the given World.

Exceptions

System.ArgumentNullException
world or cloner was null.