As the screenshots show, global variable 126 changes into 0:(untitled) when made public as a GVar
https://ibb.co/RcNKLJr
https://ibb.co/Ns3MPfW
Unity 2022.2.21
AC 1.77.3
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Variable assignments need to be made within functions - not as part of their declaration.
Move these to your Start function, i.e.: