
0
Pending Review
Bolt 2a10 The name 'ToGenerated' does not exist in the current context
Graph: https://imgur.com/RiQLZXq
A component Class is trying to set itself as a Singleton class variable. No idea how to get the reference on the singleton otherwise, and it works in Live, just not after switching to Generated mode.
Assets\Ludiq.Generated\Transient\Scripts\Inventory.cs(262,52): error CS0103: The name 'ToGenerated' does not exist in the current context
Bolt Version:
2.0.0a10
Unity Version:
2019.3.2f1
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Customer support service by UserEcho
People in Discord report problems with event communication between singleton and component classes as well.
Hi TowerCrow,
Thanks for the report and sorry for the late reply.
There is a good chance that this has been fixed already in my working version as I improved conversions to and from shell types in general, but I'll double-check.
The issue I think may be happening here is that ToGenerated may be an extension method, and C# doesn't allow implicit this referencing on extension methods, which might throw off the code generation.
Posting another warning I get from the graph after generating C# scripts for documenting purposes. I'll see if this keep happening in the next alpha.