
0
Fixed
Default values reset on first scene load when macro dependency is present
Not sure what I'm doing wrong, but anytime I exit Unity my variables are cleared from all my graphs the next time I reopen the project. (Yes, I'm positive I saved the scene...)
The variables themselves are still present and the values are retained; however, any variables placed in node fields are gone...
I've removed and recreated the variables and graphs multiple times. It works fine until I exit Unity and reopen the project...
Is this a bug or something dumb I'm doing?
FYI - I upgraded to the latest version of Bolt after I found the issue, but that did not resolve the issue...
Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Customer support service by UserEcho
This same thing is happening to me as well.
After more testing it appears the variables are only removed when the following Super Unit is within the Graph
I'm not sure if this applies to any other Super Units in flows or something in particular with this one...
I can test further tomorrow evening, but I gotta get some rest now...
Hi WoodenDragon,
Sorry this is happening. I'm having a hard time reproducing this one.
If all else fails, can you send me a project with a small graph that isolates the issue?
(Please do not include the Bolt asset in the zip)No errors when closing or opening Unity. The flows obviously doesn't work, so it complains about the missing values upon play, but nothing more than that from what I can tell...
Haven't really tried different 'Types' of variables, but it did remove the 'Horizontal ' axis from "Input - Get Axis" node
"set" variables are removed as well
Graph Data Link: Bolt Graph Data
I just made a simple Flow, which concatenates 3 arguments together on startup. It works just fine and I can shutdown and reopen Unity without the inline values being removed. I then made a new Flow Macro (Super Unit), which is about as basic as it can get. I then add this Super unit to the previous flow. During my current session, it works flawlessly; however, as soon as I restart Unity, these inline values are gone. Something with the Super Units is causing my values to be removed...
Thanks for the follow-up.
The fact that input get axis disappeared as well is very important, it means that it has nothing to do with variables, but rather with default values.
I'll look into it and see if I can reproduce, but I couldn't before... Any chance you could send a small project where the issue occurs?
I'll see if I can reproduce it in a new project
I was able to reproduce the issue with a blank project.
I have attached 2 scenes and the Super Unit Flow Macro. (Bolt Test Scenes)
Upon restarting unity:
Please let me know if you need any other data from the scene or have any questions...
I've been able to reproduce the issue, but it's very odd and specific.
It happens only
if the default loaded scene on restart is the one with the graphsonly on the first load of the scene with the super unit.A quick workaround for now is to manually double-click that same scene to force open it, and the lost values come back.
Rest assured, your values aren't lost, they only seem to get reset after deserialization for some reason...
Starting to get an idea of where it might be coming from, but it's proving hard to debug and might not make it for v.1.0.3. Use the workaround in the mean time.
No worries my friend, just happened to discover it while testing some scenarios and getting accustomed to the work flow. Nothing mission critical.
Keep up the great work Lazlo!
Whew, this one was a pain to track down, but I think I got it fixed for v.1.0.3. :)
Sorry for the troubles!
Nice job!