Documentation

Unity Engine


Unity Engine


GetOptionalEnabledRefRO<T>(int)

Get a EnabledRefRO<T> reference to the enabled bit at index.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EnabledRefRO<T> GetOptionalEnabledRefRO<T>(int index) where T : unmanaged, IEnableableComponent

Parameters

index

The index to the enabled bit in the chunk.

Returns

Type

Description

EnabledRefRO<T>A read-only reference to the enabled bit for the component at the specified index or EnabledRefRO<T>.Null if this EnabledMask is not valid.