void CreateTriggersMenu() { // Create our triggers menu triggers = new GenericMenu(); foreach (string path in TriggerManager.CreateTriggersDict().Keys) { triggers.AddItem(new GUIContent(path), false, clickHandler, path); } trigger = serializedObject.FindProperty("trigger").stringValue; }