Table of Contents

Class UnityObjectExtensionMethods

Namespace
CodeBase
Assembly
4Experience.CodeBase.Core.Runtime.dll
public static class UnityObjectExtensionMethods
Inheritance
UnityObjectExtensionMethods

Methods

IsNotNull<T>(T)

Tests if an object is null, taking potential UnityEngine.Object derived class implementers into account which require their overridden operators to be called. False if either the managed or native object is null, true otherwise.

public static bool IsNotNull<T>(this T instance) where T : class

Parameters

instance T

Returns

bool

Type Parameters

T

IsNullWithLog(Object)

Tests if an Unity object is null and log error when object is null.

public static bool IsNullWithLog(this Object unityObject)

Parameters

unityObject Object

Returns

bool

IsNull<T>(T)

Tests if an object is null, taking potential UnityEngine.Object derived class implementers into account which require their overridden operators to be called. True if either the managed or native object is null, false otherwise.

public static bool IsNull<T>(this T instance) where T : class

Parameters

instance T

Returns

bool

Type Parameters

T