Search Issue Tracker

Active

Votes

0

Found in [Package]

2.0.0a6

Issue ID

BOLT-742

Regression

No

Locals in flow macros do not disambiguate across multiple instances of same macro

Package: Bolt

-

[Original Issue|https://support.ludiq.io/communities/5/topics/4694-locals-in-flow-macros-do-not-disambiguate-across-multiple-instances-of-same-macro#] - Confirmed by Lazlo

----

Created a Flow Macro to output a random character (string). If I chain together a few of these same Flow Macros, though, the value of each call is overridden by the last one in the sequence. Each Flow Macro generates a different value but when concatenated together, they all end up being the same value. See the debug output to the console:

!https://support.ludiq.io/s/attachments/21929/5/1550/dbf180755dad67e0e48b3b95c26e7c6e.png!

I then created a Flow Function (in the same class) and it worked correctly:

!https://support.ludiq.io/s/attachments/21929/5/1550/c528cc6239f8958da3d3dd93d105586f.png!

Next, I decided to create a version of this Flow Function in a different, "Helper" class, that I could use from other classes, without requiring duplication. When I did that, though, I received an error, "...doesn't own graph..."

!https://support.ludiq.io/s/attachments/21929/5/1550/783140dd968234e62d8114500ed69a89.png!
Bolt Version:
2.0.0a6
Unity Version:
2019.2.1.7f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.