EditorApplication Awake event?


Is there a way to make Unity call a function when the Unity Application loads or exits (like void OnApplicationStart() or something akin to it)?

I want to create a global instance of a JSON / animation data handler class that can be accessed from all Editor objects, MonoBehaviours, and EditorWindows.

I tried doing this by extending EditorApplication, but that class is sealed, and I’m out of ideas.

Thanks in advance!

using UnityEngine;
using UnityEditor;

public class Startup
static Startup()
//Do something