BioMotionLab / TUX

A framework for experiments in Unity and VR
https://biomotionlab.github.io/TUX/
Other
29 stars 4 forks source link

Issue: Script Helper Tool with the same experiment name overwrites previous files without warning #44

Open A-Ivan opened 2 years ago

A-Ivan commented 2 years ago

If you use the Script Helper Tool to setup the experiment automatically more than once, with the same name, it will overwrite any previously created and edited files.

I suggest adding a function to check if these files already exist and to provide a popup of some kind asking the user to confirm if they want to overwrite the existing files.

Confirming would recreate/overwrite the files experiment files.

Canceling would keep the user at the Script Helper window without overwriting any files. The user could then change the experiment name and then create/setup the desired files.

AdamBebko commented 9 months ago

I agree this would be a useful check. Unfortunately, I don't have the resources at this time to do the work. Please feel free to submit a pull request, and I can take a look!