GetRefRO(Entity)
Gets a safe reference to the component data.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public RefRO<T> GetRefRO(Entity entity)
Parameters
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. |