文档

Unity Engine

Unity Engine

GetEnabledRefROOptional<T2>(Entity)

Gets a safe reference to the component enabled state.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

GetEnabledRefROOptional<T>(Entity)

public EnabledRefRO<T2> GetEnabledRefROOptional<T2>(Entity entity) where T2 : unmanaged, IComponentData, IEnableableComponent

Parameters

entity

The referenced entity

Returns

Type

Description

EnabledRefRO<T>Returns a safe reference to the component enabled state. If the component doesn't exist, returns an invalid EnabledRefRO<T>.