示例#1
0
    public override void OnInspectorGUI()
    {
        if (assetTarget.myTextAsset != null)
        {
            if (GUILayout.Button("Analyze CSV File"))
            {
                GenerateQuests();
            }
        }

        if (GUILayout.Button("Generate"))
        {
            TestEidtorWindow myWindow = EditorWindow.GetWindow(typeof(TestEidtorWindow)) as TestEidtorWindow;

            myWindow.Init(assetTarget);
        }

        base.OnInspectorGUI();
    }
示例#2
0
    public static void OpenThisWindow()
    {
        TestEidtorWindow myWindow = EditorWindow.GetWindow(typeof(TestEidtorWindow)) as TestEidtorWindow;

        myWindow.Init(null);
    }