#Managed GameObject reference on baked entity in subscene breaks scene loading in build

1 messages · Page 1 of 1 (latest)

regal vale
#

When creating a build with a subscene that references a GameObject on a managed component, the AsyncLoadSceneJob fails with the following message:
Error when processing 'AsyncLoadSceneJob(StreamingAssets/EntityScenes/6086a43b86fc4d648a3ce1d94c0b822a.0.entities)': The given key 'PoolStaticSprite (UnityEngine.GameObject)' was not present in the dictionary.
(where PoolStaticSprite is the name of the referenced GameObject prefab).

I'm not sure if this is a bug with the scene loading job, baking, or me doing something wrong. 🤷‍♀️

regal vale
#

Latest version (1.0.0-pre.15)

#

What's weird is I had a similar issue with a VisualTreeAsset reference that was baked causing the scene to fail loading (which I then loaded via addressables to circumvent the issue), but a reference to a Sprite bakes fine. Not sure if these two issues are related but I found it odd since they are both UnityEngine.Object...

regal vale
#

Ah cool. No worries then, I just wasn't sure if this was something you were aware of, but that's great.
Thanks for letting me know 👍