EntityRecord.CopyTo(World,ComponentCloner).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Command.EntityRecord

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.