0
Fixed (Unreleased)

2.0.0a8 debug.log can't generate working C# with a value input from Set Variable unit

Ex-Crow 7 months ago updated by Lazlo Bonin (Lead Developer) 5 months ago 2

While the value from Set Variable unit can now be fetched and works in Live mode, it fails to generate working C# code.

Graph: https://imgur.com/FaSx9Bl

Error:

Assets\Ludiq.Generated\Transient\Scripts\Player.cs(68,34): error CS0841: Cannot use local variable 'playerStrength' before it is declared
Bolt Version:
2.0.0a8
Unity Version:
2019.2.19
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2
Pending Review

Thanks, it seems like the issue is that the codegen doesn't realize playerStrength is already an identifier in use by the class variable itself, causing the issue. I'll look into it.

Fixed (Unreleased)

Hi TowerCrow,

Thanks for the report. This will be fixed in the next version.