ドキュメント

Unity Engine

Download Unity

Unity Engine

GetEnabledRefRWOptional<T2>(Entity)

Gets a safe reference to the component enabled state.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

GetEnabledRefRWOptional<T>(Entity)

public EnabledRefRW<T2> GetEnabledRefRWOptional<T2>(Entity entity) where T2 : unmanaged, IComponentData, IEnableableComponent

Parameters

entity

The referenced entity

Returns

Type

Description

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