Class UnityUtilities
Contains utility functions related to unity objects
Namespace: WeaverCore.Utilities
Assembly: WeaverCore.dll
Syntax
public static class UnityUtilities
Properties
| Edit this page View SourceGetCachedPtr
Gets the cached pointer for an object
Declaration
public static Func<Object, IntPtr> GetCachedPtr { get; }
Property Value
Type | Description |
---|---|
Func<Object, IntPtr> |
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 SourceIsObjectTrulyNull(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 |
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 |