docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityObjectUtility

    Inheritance
    Object
    UnityObjectUtility
    Namespace: Ludiq
    Syntax
    public static class UnityObjectUtility

    Properties

    isUnityNullSafeCheckSupported

    Declaration
    public static bool isUnityNullSafeCheckSupported { get; }
    Property Value
    Type Description
    Boolean

    Methods

    AsUnityNull<T>(T)

    Declaration
    public static T AsUnityNull<T>(this T obj)
        where T : Object
    Parameters
    Type Name Description
    T obj
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    FindObjectsOfTypeInAllScenes(Type, Boolean)

    Declaration
    public static IEnumerable<Object> FindObjectsOfTypeInAllScenes(Type type, bool includeInactive = true)
    Parameters
    Type Name Description
    Type type
    Boolean includeInactive
    Returns
    Type Description
    IEnumerable<Object>

    FindObjectsOfTypeInAllScenes<T>(Boolean)

    Declaration
    public static IEnumerable<T> FindObjectsOfTypeInAllScenes<T>(bool includeInactive = true)
    Parameters
    Type Name Description
    Boolean includeInactive
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    FindObjectsOfTypeInScene(Type, Boolean)

    Declaration
    public static IEnumerable<Object> FindObjectsOfTypeInScene(Type type, bool includeInactive = true)
    Parameters
    Type Name Description
    Type type
    Boolean includeInactive
    Returns
    Type Description
    IEnumerable<Object>

    FindObjectsOfTypeInScene(Type, Scene, Boolean)

    Declaration
    public static IEnumerable<Object> FindObjectsOfTypeInScene(Type type, Scene scene, bool includeInactive = true)
    Parameters
    Type Name Description
    Type type
    Scene scene
    Boolean includeInactive
    Returns
    Type Description
    IEnumerable<Object>

    FindObjectsOfTypeInScene<T>(Boolean)

    Declaration
    public static IEnumerable<T> FindObjectsOfTypeInScene<T>(bool includeInactive = true)
    Parameters
    Type Name Description
    Boolean includeInactive
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    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 Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    GetInstanceIDSafe(Object)

    Declaration
    public static int GetInstanceIDSafe(this Object uo)
    Parameters
    Type Name Description
    Object uo
    Returns
    Type Description
    Int32

    IsDestroyed(Object)

    Declaration
    public static bool IsDestroyed(this Object target)
    Parameters
    Type Name Description
    Object target
    Returns
    Type Description
    Boolean

    IsHidden(Object)

    Declaration
    public static bool IsHidden(this Object uo)
    Parameters
    Type Name Description
    Object uo
    Returns
    Type Description
    Boolean

    IsUnityNull(Object)

    Declaration
    public static bool IsUnityNull(this object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean

    IsUnityNullSafe(Object)

    Declaration
    public static bool IsUnityNullSafe(this Object uo)
    Parameters
    Type Name Description
    Object uo
    Returns
    Type Description
    Boolean

    NotUnityNull<T>(IEnumerable<T>)

    Declaration
    public static IEnumerable<T> NotUnityNull<T>(this IEnumerable<T> enumerable)
        where T : Object
    Parameters
    Type Name Description
    IEnumerable<T> enumerable
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    ToSafeString(Object)

    Declaration
    public static string ToSafeString(this object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    String

    ToSafeString(Object)

    Declaration
    public static string ToSafeString(this Object uo)
    Parameters
    Type Name Description
    Object uo
    Returns
    Type Description
    String

    TrulyEqual(Object, Object)

    Declaration
    public static bool TrulyEqual(Object a, Object b)
    Parameters
    Type Name Description
    Object a
    Object b
    Returns
    Type Description
    Boolean

    UnityNullCoalesce(Object, Object)

    Declaration
    public static object UnityNullCoalesce(this object obj, object fallback)
    Parameters
    Type Name Description
    Object obj
    Object fallback
    Returns
    Type Description
    Object
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023