Show / Hide Table of Contents

Class UnityUtilities

Contains utility functions related to unity objects

Inheritance
object
UnityUtilities
Namespace: WeaverCore.Utilities
Assembly: WeaverCore.dll
Syntax
public static class UnityUtilities

Properties

| Edit this page View Source

GetCachedPtr

Gets the cached pointer for an object

Declaration
public static Func<Object, IntPtr> GetCachedPtr { get; }
Property Value
Type Description
Func<Object, IntPtr>
| Edit this page View Source

IsNativeObjectAlive

Checks if the native pointer for an object is still alive

Declaration
public static Func<Object, bool> IsNativeObjectAlive { get; }
Property Value
Type Description
Func<Object, bool>

Methods

| Edit this page View Source

IsObjectTrulyNull(Object)

Checks if an object is truly null (Completely deallocated)

Declaration
public static bool IsObjectTrulyNull(Object obj)
Parameters
Type Name Description
Object obj

The object to check

Returns
Type Description
bool
| Edit this page View Source

ObjectIsAlive(object)

Checks if an object is still alive

Declaration
public static bool ObjectIsAlive(object obj)
Parameters
Type Name Description
object obj

The object to check

Returns
Type Description
bool

Returns true if the object is still alive, and false if destroyed

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾