Skip to content

Struct PendingEntity ​

Namespace: KenseiECS

Handle to an entity that a CommandBuffer will create on Playback. Usable as a target for further commands in the same buffer.

csharp
public readonly struct PendingEntity

Inherited Members ​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Remarks ​

Valid only in the buffer that returned it, until that buffer is played back or cleared: after Playback the same id names the first entity the next recording creates. Under KENSEI_DEBUG a PendingEntity of another buffer, of an earlier recording or a default one throws when it is recorded: that command is not recorded, and the commands recorded before it stay in the buffer. In release it is not checked. An unmanaged struct in every build (it holds no reference), so it can be kept in a stackalloc span or a native container; its size differs between the builds.