ObjectExtensions.FindNonNullReference<T>
Extension Method in ObjectExtensions
Declaration
public static T FindNonNullReference<T>(this T obj)
Description
Finds a reference to the specified object type in the scene. If the object reference is already assigned, then the current reference will be returned.
Type Parameters
T | The type of object to find. |
Parameters
obj | The object to find the reference for. |
Returns
T | The reference to the object if it exists. |