Esempio n. 1
0
    static void OpenWindow()
    {
        CustomWindow window = (CustomWindow)EditorWindow.GetWindow(typeof(CustomWindow));

        window.Show();
        data.Clear();
        filePath = "file://" + Application.dataPath + "/Resources/Role.xml";
        data     = ReadXml <Role> .Load(filePath);
    }