docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License
    Show / Hide Table of Contents
    • Scripting API

    Class UnityObjectUtility

    Inheritance
    Object
    UnityObjectUtility
    Namespace: Unity.VisualScripting
    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
    Boolean

    IsUnityNull(Object)

    Declaration
    public static bool IsUnityNull(this object obj)
    Parameters
    Type Name Description
    Object obj
    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
    In This Article
    • Methods
      • AsUnityNull<T>(T)
      • FindObjectsOfTypeIncludingInactive<T>()
      • IsDestroyed(Object)
      • IsUnityNull(Object)
      • NotUnityNull<T>(IEnumerable<T>)
      • ToSafeString(Object)
      • ToSafeString(Object)
      • TrulyEqual(Object, Object)
    Back to top
    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