Version 2.1.0.0

UnityEditorEventUtility class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class UnityEditorEventUtility
Sometimes, an idiot overrides a delay action subscription to UnityEditor.EditorApplication.delayCall, which can be done because the people at Unity didn't know what events were once upon a time. This method subscribes to a lot of different callbacks, in the hopes of catching at least one.
Inheritance
  • System.Object
  • UnityEditorEventUtility

Fields

HasOnProjectChanged
public static readonly bool HasOnProjectChanged

Methods

DelayAction(Action)
Sometimes, an idiot overrides a delay action subscription to UnityEditor.EditorApplication.delayCall, which can be done because the people at Unity didn't know what events were once upon a time. This method subscribes to a lot of different callbacks, in the hopes of catching at least one.
public static void DelayAction(Action action)
Parameters
System.Action action

DelayActionThreadSafe(Action)
Sometimes, an idiot overrides a delay action subscription to UnityEditor.EditorApplication.delayCall, which can be done because the people at Unity didn't know what events were once upon a time. This method subscribes to a lot of different callbacks, in the hopes of catching at least one.

As opposed to DelayAction(Action), this method is safe to call from any thread, and will delay the actual subscription to a safe time.

public static void DelayActionThreadSafe(Action action)
Parameters
System.Action action

Events

OnProjectChanged
public static event Action OnProjectChanged

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.