This issue has affected me twice in the last hour. Upon leaving PlayTest mode and opening the second docked script, the second docked script is immediately replaced with the first docked script’s contents. Undo-ing does not work, and conveniently, Studio happened to autosave the second this happened.
Repro:
Open two scripts in Dock
Leave PlayTest mode and immediately click on the second docked script
It should replace the contents with the first docked script’s contents
Happening since: 6/22/21 at 3:25 PM PST
I have lost hundreds of lines of code to this bug and I hope it is addressed ASAP.
You should make the topic title more descriptive here – this is impossible for someone with the same issue to find back via forum search since the title is so generic.
Sorry to hear that. I am not able to reproduce this too. Do you turn on any beta feature? Like Script Editor Linting? Are you in team create mode? Do you have any plugin installed?
I am not able to repro either (to send video), but there are a few things:
Today when I was booting up Studio, there was an update, so that could have fixed it.
Prior to today’s update (when this bug was happening), after leaving PlayTest any script that I loaded within ~2 seconds of leaving PlayTest would show the contents of the first docked script for around half a second and then the proper script contents would appear. After today’s update, this behavior no longer occurs.
If it helps any, there is a place version history in Game Settings where you can revert to a previous version of your game. This will only work if it was published though.
Hi, would you try to disable all plugins and see it is still reproducible? What the plugin you are using? It seems some plugins did some work when you change script content.
For anyone wondering if this issue is still reproduceable.
OP got in contact with the creator of the plugin causing the problem and they fixed it. Link to post saying it has been resolved.
It was never an actual bug and should no longer be able to be reproed.