Forum rules - please read before posting.

All ActionList, Cutscene and Interaction editors in the scene empty after opening Unity

edited January 2023 in Technical Q&A

Hi guys, something strange happened. Basically I was opening the Unity Editor while suddenly a warning message appeared saying that previously Unity was closed with errors (it was just a forgotten line of code with no semicolon). I clicked on ignore like I always do and Unity took more time than usual to open up. When it opened I noticed that all ActionList editors in the hierarchy were blank, no actions. How is it possible that a simple error resetted every single ActionList editor inside the scene? Is there a way to recover the old ones?

Comments

  • Did you save the scene afterwards, and what are your AC and Unity versions?

    Apologies for the trouble - Unity will unfortunately lose certain scene data in the event of a compilation error.

    To try to mitigate this, AC backs up its ActionList data (by default, every 10 minutes).

    If you go to an empty ActionList's Inspector, click the cog icon in its upper-right corner, and select Action data -> Restore from the context menu. If backup data exists, it should then get restored - though you should check it carefully to be sure.

    This is a last-resort, however. In the event that this occurs again, always open Unity in Safe Mode if prompted, and don't save the scene after fixing the script.

  • Oh well, I could never imagine that It would reset everything. Now that I know I'll be more careful next time. My Unity version is 2022.1.22f1 and Adventure Creator is 1.76.0. Fortunately I had made a copy in the assets of the biggest ActionList in the project. Anyway yes, I saved afterwards and I also tried Action Data -> Restore but nothing, probably the backup was already gone. For the future, if I click backup in the cog icon on the upper-right corner, where I can find it?
  • I'm relieved you have a manual backup - I'd strongly recommend the use of version control as well for any Unity project.

    For the future, if I click backup in the cog icon on the upper-right corner, where I can find it?

    There was an unfortunate issue that caused backup data to be overwritten with the "empty" ActionList data if the backup process was run after the data loss. This was addressed in v1.76.1, however.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.