Пример #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Editor Window"))
     {
         CursorManagerDataEditor.Open((CursorManagerData)target);
     }
 }
Пример #2
0
        public static bool OpenEditor(int instanceId, int line)
        {
            CursorManagerData obj = EditorUtility.InstanceIDToObject(instanceId) as CursorManagerData;

            if (obj == null)
            {
                return(false);
            }

            CursorManagerDataEditor.Open(obj);
            return(true);
        }