implicit operator T
Implicitly converts a UnityObjectRef to the UnityEngine.Object it references.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Operator
- Namespace: Unity.Entities
- Assembly: UnityEngine.CoreModule
implicit operator T(UnityObjectRef<T>)
Implicitly converts a UnityObjectRef to the UnityEngine.Object it references.
public static implicit operator T(UnityObjectRef<T> unityObjectRef)
Parameters
Reference used to access the Object.
Returns
Type | Description |
|---|---|
| T | The instance of type T referenced by unityObjectRef. |
implicit operator bool(Boolea)
Checks whether the reference points to a valid object.
public static implicit operator bool(UnityObjectRef<T> obj)
Parameters
The reference to check.
Returns
Type | Description |
|---|---|
| bool | True if the referenced object's EntityId is valid. |