Operator implicit operator
implicit operator UnityObjectRef<T>(T)
Implicitly converts an Object to an Unity
Declaration
public static implicit operator UnityObjectRef<T>(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance | Instance of the Object to store as a reference. |
Returns
Type | Description |
---|---|
Unity |
A UnityObjectRef referencing instance |
implicit operator T(UnityObjectRef<T>)
Implicitly converts an Unity
Declaration
public static implicit operator T(UnityObjectRef<T> unityObjectRef)
Parameters
Type | Name | Description |
---|---|---|
Unity |
unityObjectRef | Reference used to access the Object. |
Returns
Type | Description |
---|---|
T | The instance of type T referenced by unityObjectRef. |