buildtool icon indicating copy to clipboard operation
buildtool copied to clipboard

Ability to change root folder of settings.

Open vailshnast opened this issue 4 years ago • 3 comments

Would be amazing to add ability to change root folder. Package does have constants with folder paths, but you cant change them, thanks! Something like to Plugins/SuperUnityBuild etc.

vailshnast avatar Aug 02 '21 12:08 vailshnast

@vailshnast you should be able to move the settings file that's created by default at Assets/SuperUnityBuild to wherever you like in your folder structure, including to a path like Assets/Plugins/SuperUnityBuild. You can also create a new settings file (Assets > Create > SuperUnityBuild Settings) and use the settings file picker UI to select which one SuperUnityBuild uses:

image

robinnorth avatar Oct 07 '21 09:10 robinnorth

@robinnorth i think this is still an issue. we've moved the SuperUnityBuild folder to Assets/Plugins and pointed the plugin to the settings in Assets/Plugins/SuperUnityBuild/Settings, but every time we build it re-creates the default folder and settings asset and re-sets the path to the freshly created asset.

tycobbb avatar Aug 04 '22 19:08 tycobbb

Hey @tycobbb, thanks for this. I do need to take a look into it some more, as whilst SuperUnityBuild (should) currently support pointing the settings instance at an asset at a different path, this is currently kept track of using EditorPrefs which is machine-specific and won't be tracked in source control. If you just move the settings asset rather than create a new one (Create > SuperUnityBuild Settings), it might be that this path change isn't be saved resulting in the behaviour you describe.

SuperUnityBuild will also still always create its default folder structure under Assets, regardless of the path to the settings file it is using, which I get might be a bit confusing and annoying, so will also look to change this.

robinnorth avatar Aug 16 '22 12:08 robinnorth