EntityCommandRecorder.Record(Entity).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Command.EntityCommandRecorder

EntityCommandRecorder.Record(Entity) Method

Gives an EntityRecord to record action on the given Entity.
This command takes 9 bytes.

public DefaultEcs.Command.EntityRecord Record(in DefaultEcs.Entity entity);

Parameters

entity Entity

The Entity to record action for.

Returns

EntityRecord
The EntityRecord used to record actions on the given Entity.

Exceptions

System.InvalidOperationException
Command buffer is full.