+1
Fixed (Unreleased)

2.0.0a6 Invalid code generation for state transition constructors

TowerCrow 4 months ago updated by Lazlo Bonin (Lead Developer) 1 day ago 2 1 duplicate

Appeared after exiting Play mode. I created a new State graph before entering play mode.

Graph: https://imgur.com/VP9ivBu

[CompilerError] Argument 2:
cannot convert from 'Ludiq.Bolt.Generated.function' to 'Ludiq.Bolt.IGeneratedStateTransition'
Compiler Error at Assets\Ludiq.Generated\Transient\Scripts\function.cs:45 column 68
43:   startState = new GeneratedFlowState(new function.StartState(this), false);
44:   flowState = new GeneratedFlowState(new function.FlowState(this), false);
-->45:   startToFlowState = new function.StartToFlowState(this, this);
46:   startState.outgoingTransitions.Add(startToFlowState);
47:   flowState.incomingTransitions.Add(startToFlowState);
Bolt Version:
2.0.0a6
Unity Version:
2019.2.15
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2

Duplicates 1

Working on Fix

Hi TowerCrow,

Thanks for the report. I've been able to confirm this, working on a fix.

Fixed (Unreleased)

Hi,

This will be fixed in the next version.