static void Init()
        {
            SplineToolsWindow window = (SplineToolsWindow)EditorWindow.GetWindow(typeof(SplineToolsWindow));

            window.name = "Spline tools";
            List <Type> types = FindDerivedClasses.GetAllDerivedClasses(typeof(ISplineTool));

            tools = new ISplineTool[types.Count];
            int count = 0;

            foreach (Type t in types)
            {
                tools[count] = (ISplineTool)Activator.CreateInstance(t);
                count++;
            }
            window.Show();
        }
Exemple #2
0
        static void Init()
        {
            SplineToolsWindow window = (SplineToolsWindow)EditorWindow.GetWindow(typeof(SplineToolsWindow));

            window.Show();
        }