Prefab Field on Sub Scene Game Object

Wondering if someone could help me out, I have a sub-scene game object with a prefab field. What is the workflow for converting that prefab to an entity for mass spawning later at runtime. I noticed that I can not use
DeclareReferencedPrefab in my GameObjectConversionSystem using sub scenes.Thanks in advance

It must be possible, I’ve been digging through the source code for hours but can’t find anything

From memory, I thought there was an example similar to this in the samples project.

https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/ECSSamples/Assets/HelloCube/5. SpawnFromEntity

But this does use DeclareReferencedPrefab.
Why doesn’t this work in a subscene? (I haven’t tried recently)

Im duplicating a thread here by a little bit but essentially, DeclareReferencedPrefab can only be called from a System using [UpdateInGroup(typeof(GameObjectDeclareReferencedObjectsGroup))]. So im not sure how to handle this in Sub Scene conversion, I can get it working with regular conversion thank to advice for DreaminglmLatios but I could not translate that into sub scenes. So im pretty much stuck

Yup that github was my starting point but it does not translate to sub scenes

OK solved it , super embarrassing but ill take it on the chin and move on.

[RequiresEntityConversion]