playMaker

Author Topic: Global Variables Asset file corrupts during Unity update  (Read 15 times)

uk_resistant

  • Playmaker Newbie
  • *
  • Posts: 15
Hey folks,

I'm currently trying to update my version of Unity from 2021 to 2023+, as I keep getting a build issue in which the only solution is to update Unity to a version past 2021 (the issue being "sharedassets0.assets' is corrupted! Remove it and launch unity again!")

However, when I do this (or to any version above 2023), something happens to the Global variables asset file which makes it seem like Playmaker doesn't recognize it and this causes my prefabs to have no reference to the variables.

It looks like they don't exist and this in turn causes "missing script" components to appear on objects. When I open a prefab it lists no global variables either in the bespoke list or when assigning them to an action.

I have tried (mostly by looking at other posts dealing with similar problems

-Updating Playmaker + Editor
-Not updating playmaker but updating the editor
-deleting the library and reimporting
-reimporting everything
-exporting the global variable asset file from an earlier commit version and reimporting into a newer commit
-Straight up replacing the asset file with an older one from outside the project
-"recreating" the global variables in the prefab so they link and reappear (as suggested in another thread) .
-closing and re-opening the editor.

I'm at a real loss and I don't know what to do as I have waaayyyy too many Global variables to recreate and hope they link (It was a early project and the tech debt is too much!)
I can only assume that the way asset files are formatted/read is different in older versions? But honestly, I don't know.
I should note that this isn't a new project, and I have already released it on Steam. I'm actually attempting an update to the game.


The versions of everything are

Unity 2021.3.45f2
Unity 6000.1.15F1

Playmaker version
Pre-Unity update - 1.9.4
I also tried updating to latest.


Threads I have referenced:

https://hutonggames.com/playmakerforum/index.php?topic=11613.0

https://hutonggames.com/playmakerforum/index.php?topic=1117.0


Any help anyone can offer would be very useful and very much appreciated.

Thanks

Jamie D




EDIT:
After updating to 2023, this is what the inspector looks like on the Global variable asset. I have no idea what script should go there?

« Last Edit: Today at 03:26:09 PM by uk_resistant »