Class UnityObjectUtility
Inheritance
UnityObjectUtility
Namespace: Ludiq
Syntax
public static class UnityObjectUtility
Properties
isUnityNullSafeCheckSupported
Declaration
public static bool isUnityNullSafeCheckSupported { get; }
Property Value
Methods
AsUnityNull<T>(T)
Declaration
public static T AsUnityNull<T>(this T obj)
where T : UnityEngine.Object
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Type Parameters
FindObjectsOfTypeInAllScenes(Type, Boolean)
Declaration
public static IEnumerable<UnityEngine.Object> FindObjectsOfTypeInAllScenes(Type type, bool includeInactive = true)
Parameters
Type |
Name |
Description |
Type |
type |
|
Boolean |
includeInactive |
|
Returns
FindObjectsOfTypeInAllScenes<T>(Boolean)
Declaration
public static IEnumerable<T> FindObjectsOfTypeInAllScenes<T>(bool includeInactive = true)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
Returns
Type Parameters
FindObjectsOfTypeInScene(Type, Scene, Boolean)
Declaration
public static IEnumerable<UnityEngine.Object> FindObjectsOfTypeInScene(Type type, Scene scene, bool includeInactive = true)
Parameters
Type |
Name |
Description |
Type |
type |
|
Scene |
scene |
|
Boolean |
includeInactive |
|
Returns
FindObjectsOfTypeInScene(Type, Boolean)
Declaration
public static IEnumerable<UnityEngine.Object> FindObjectsOfTypeInScene(Type type, bool includeInactive = true)
Parameters
Type |
Name |
Description |
Type |
type |
|
Boolean |
includeInactive |
|
Returns
FindObjectsOfTypeInScene<T>(Scene, Boolean)
Declaration
public static IEnumerable<T> FindObjectsOfTypeInScene<T>(Scene scene, bool includeInactive = true)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Boolean |
includeInactive |
|
Returns
Type Parameters
FindObjectsOfTypeInScene<T>(Boolean)
Declaration
public static IEnumerable<T> FindObjectsOfTypeInScene<T>(bool includeInactive = true)
Parameters
Type |
Name |
Description |
Boolean |
includeInactive |
|
Returns
Type Parameters
GetInstanceIDSafe(UnityEngine.Object)
Declaration
public static int GetInstanceIDSafe(this UnityEngine.Object uo)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
uo |
|
Returns
IsDestroyed(UnityEngine.Object)
Declaration
public static bool IsDestroyed(this UnityEngine.Object target)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
target |
|
Returns
IsHidden(UnityEngine.Object)
Declaration
public static bool IsHidden(this UnityEngine.Object uo)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
uo |
|
Returns
IsUnityNull(Object)
Declaration
public static bool IsUnityNull(this object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
IsUnityNullSafe(UnityEngine.Object)
Declaration
public static bool IsUnityNullSafe(this UnityEngine.Object uo)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
uo |
|
Returns
NotUnityNull<T>(IEnumerable<T>)
Declaration
public static IEnumerable<T> NotUnityNull<T>(this IEnumerable<T> enumerable)
where T : UnityEngine.Object
Parameters
Returns
Type Parameters
ToSafeString(Object)
Declaration
public static string ToSafeString(this object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
ToSafeString(UnityEngine.Object)
Declaration
public static string ToSafeString(this UnityEngine.Object uo)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
uo |
|
Returns
TrulyEqual(UnityEngine.Object, UnityEngine.Object)
Declaration
public static bool TrulyEqual(UnityEngine.Object a, UnityEngine.Object b)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
a |
|
UnityEngine.Object |
b |
|
Returns
UnityNullCoalesce(Object, Object)
Declaration
public static object UnityNullCoalesce(this object obj, object fallback)
Parameters
Returns