ドキュメント

Unity Engine

Download Unity

Unity Engine

GetRefRO(Entity)

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

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public RefRO<T> GetRefRO(Entity entity)

Parameters

entity

The referenced entity

Returns

Type

Description

RefRO<T>Returns a safe reference to the component data. Throws an exception if the component doesn't exist.