UnityExtensions

Extends various Unity classes.

namespace Sirenix.Utilities
{
[ExtensionAttribute]
public static class UnityExtensions
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Extension Methods

Return Type Definition Description
bool SafeIsUnityNull(this Object) Determines whether a Unity object is null or "fake null", without ever calling Unity's own equality operators. This method is useful for checking if a Unity object is null, destroyed or missing at times when it is not allowed to call Unity's own equality operators, for example when not running on the main thread.