Documentation

Unity Engine

Unity Engine

EnabledRefRW<T>

Stores a safe reference to a read-writable component enable bit. Also keeps a pointer to the chunk disabled count, which is updated when the enabled bit is written to.
Read time 1 minuteLast updated 6 days ago

Definition

public readonly struct EnabledRefRW<T> : IQueryTypeParameter where T : unmanaged, IEnableableComponent

Remarks

Do not store outside of stack

Constructors

Constructor

Description

EnabledRefRW`1(Unity.Entities.SafeBitRef,System.Int32*)Constructor for writable enable reference to enableable component.

Properties

Property

Description

IsValidProperty that returns true if the reference is valid, false otherwise.
ValueROProperty to get enabled value of this reference (true if enabled, false otherwise).
ValueRWProperty to get or set enabled value of this reference (true if enabled, false otherwise).

Static Properties

Property

Description

NullNull value for this reference.