#[1.1.0-exp.1] Failed to code gen properly

1 messages · Page 1 of 1 (latest)

fluid garnet
#

Is that code gen has been replaced completely to new system? Previously at latest 1.0.16 it's still working properly but at 1.1.0-exp.1 it's no longer working properly

oak lodge
#

probably helpful if you could post the code that's failing

fluid garnet
#

Found it. Can't write the following in 1 line at 1.1.0-exp.1.
SystemAPI.ManagedAPI.GetComponent<FooComponent>(SystemAPI.GetSingletonEntity<BarComponent>());

#

Another fail case is when does not cache entity:
SystemAPI.GetComponent<FooComponent>(entityQuery.GetSingletonEntity()); SystemAPI.GetComponent<BarComponent>(entityQuery.GetSingletonEntity());

ripe walrus
#

Surprising, I'll see what happened.. Likely an artifact of refactoring the generators to get that performance boost, but wouldn't expect this to break.. aaarrggghh 🙃

#

I guess good thing we called the release experimental :3

oak lodge
#

Everything is experimental once the public gets it mopCaffeine