ドキュメント

Unity Engine

Download Unity

Unity Engine

GetRefROOptional(Entity)

Obsolete. Use ComponentLookup<T>.TryGetRefRO instead.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
Deprecated. This function was not intended to be in the public API, and it will be removed in a future release.
public RefRO<T> GetRefROOptional(Entity entity)

Parameters

entity

The referenced entity

Returns

Type

Description

RefRO<T>Returns a safe reference to the component data, or an invalid reference if
entity
does not have component
T
.