0

2.0.0a8 C# Code Generation: Code for events using EventBus appears to be using non-existent methods.

jfalcon 9 months ago updated 9 months ago 0

I added an event for a Unity UI button in my graph.  When generating C# code, errors are displayed for the generated script:

error CS0117: 'EventBus' does not contain a definition for 'Register'.
error CS0117: 'EventBus' does not contain a definition for 'Unregister'.

After inspecting the EventBus class, it appears that the C# generator should have generated method calls for Add() and Remove() instead.

Bolt Version:
2.0.0a8
Unity Version:
2019.2.19f1
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2