WorldRecord.md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Command

WorldRecord Struct

Represents a World on which to create commands to record in a EntityCommandRecorder.

public readonly ref struct WorldRecord
Methods
CreateEntity()Records the creation of an Entity on a World and returns an EntityRecord to record action on it.
This command takes 9 bytes.
Remove<T>()Removes the component of type T on the corresponding World.
This command takes 7 bytes.
Set<T>()Sets the value of the component of type T to its default value on the corresponding World.
For a blittable component, this command takes 7 bytes + the size of the component.
For non blittable component, this command takes 11 bytes and may cause some allocation because of boxing on struct component type.
Set<T>(T)Sets the value of the component of type T on the corresponding World.
For a blittable component, this command takes 7 bytes + the size of the component.
For non blittable component, this command takes 11 bytes and may cause some allocation because of boxing on struct component type.