示例#1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Editor"))
     {
         PatrolPathEditorWindow.Open((PatrolPath)target);
     }
 }
示例#2
0
    public static void Open(PatrolPath patrolPathObject)
    {
        PatrolPathEditorWindow window = GetWindow <PatrolPathEditorWindow>("Path Patrol Editor");

        window.serializedObject = new SerializedObject(patrolPathObject);
    }