Skip to content

springpunk/unity-migration-tools

Repository files navigation

Springpunk Migration Tools (SPMT) for Unity

Editor tools to facilitate some steps in migrating/updating to new systems

Screenshot

Default functionalities

  • Project scene selection
  • Scene folder and subfolder creation
  • Opening scenes, marking them as dirty and saving them
  • Custom tool creation

How to install

  • Open the Unity Package Manager (Window > Package Manager)
  • Click the "plus" icon in the top left
  • Select "Add package from git URL"
  • Paste in the git URL for this repo: https://github.com/springpunk/unity-migration-tools.git

Usag

Opening the window

  • Window > Springpunk > Migration Tools

Getting the loaded scenes from the SPMT Window

using Springpunk.MigrationTools.Editor;

public class Example {

    public void Foo(){
        SceneLoader sceneLoader = MigrationToolsWindow.Instance.SceneLoader;
        string[] selectedScenePaths = sceneLoader.SelectedScenePaths
    }
}

Creating a custom tool

Check the example to see how to implement custom tools

using UnityEditor;
using Springpunk.MigrationTools.Editor;

[InitializeOnLoad]
public class MyCustomTool : MigrationTool
{
    // Automatically register the tool for use on editor load
    static MyCustomTool()
    {
        MyCustomTool example = new MyCustomTool();
        MigrationToolsWindow.RegisterCustomTool(example);
    }

    public MyCustomTool() : base("My Custom Tool") { }

    protected override void OnGUI()
    {
        // Editor GUI code goes here...
    }
}

About

Editor tools to facilitate some steps in migrating/updating to new systems

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages