Cannot Reproduce

Custom Script Modify Bug

하민호 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 6

Hi, I found a bug.

I created myCustomClass. And add this line;

        public string EventKey_NormalTab { get { return "NormalTab"; } }

then, I connected it on the flow machine. 

then, I change myCutomClass's script to

      public const string EventKey_NormalTab = "NormalTab";

And once again I got an error when I turned on the flow machine.

with Log:

MissingFieldException: Field 'Puzzle.AnimalInfoPopup.EventKey_NormalTab' not found

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

That does appear to be a bug though. If the name remains the same, switching from a getter to a constant shouldn't bother Bolt. I'll look into it.

Flow Machine's first connetion is this Situation.

And after modify then this Situation.

You can possibly uncheck "values" to get around the graphical glitch for now.

Cannot Reproduce

Tried to reproduce this bug but I can't. When switching from property to constant or the other way around, Bolt keeps the connection intact. Even if I change the field name, there is no graphical error, and Bolt properly removes the connections and logs a warning.

Let me know if this still happens in v.1.0.4 when it's published. If so, please provide a minimal test project that I can use to reproduce the bug.