docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityObjectUtility

    Inheritance
    object
    UnityObjectUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VisualScripting
    Assembly: Unity.VisualScripting.Core.dll
    Syntax
    public static class UnityObjectUtility

    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

    FindObjectsOfTypeIncludingInactive<T>()

    Declaration
    public static IEnumerable<T> FindObjectsOfTypeIncludingInactive<T>()
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    IsDestroyed(Object)

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

    IsUnityNull(object)

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

    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
    bool
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)