GetRefROOptional(Entity)
Obsolete. Use ComponentLookup<T>.TryGetRefRO instead.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public RefRO<T> GetRefROOptional(Entity entity)
Parameters
The referenced entity
Returns
Type | Description |
|---|---|
| RefRO<T> | Returns a safe reference to the component data, or an invalid reference if |