2.0.0a7 On Collision green event units produce errors after generating C# scripts.

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

The code works in Live mode but produces errors after generating C# code. Both graphs produce the same error.

Graph 1: https://imgur.com/FKsFmFm

Graph 2: https://imgur.com/45AENFU

Assets\Ludiq.Generated\Transient\Scripts\HealthSystem.cs(65,57): error CS1501: No overload for method 'GetOrAddComponent' takes 1 arguments
Assets\Ludiq.Generated\Transient\Scripts\Spikes.cs(53,57): error CS1501: No overload for method 'GetOrAddComponen' takes 1 arguments

As a side note, Live mode graph accepted going from On Collision Enter 2D's collider straight to GameObject.CompareTag via an automatically created proxy. It worked in Play mode as well. But after generating C# code it says it can't convert from collider to gameobject. Inserting a collider2d.gameObject (get) unit fixed it for the C# code. A bit weird how one environment could convert but the other can't. 

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2
Fixed (Unreleased)

Hi TowerCrow,

Thanks for the report. The GetOrAddComponent issue will be fixed in the next version.

The conversion issue will also be fixed as a result of another bug fix regarding conversion on value proxies.