I’m in the process of switching my project to DOTS especially because of the Hybrid Renderer but running into some workflow issues. ( 2020.3.3f1 All the latest packages )
My usual prefab hierarchies for world building look like this:
The Fracture Container is coming from Houdini ( Convex Hull Decomposition… ) for collider generation.
The LOD_Group is only used to set culling distance.
I’d like to keep all this information together in one prefab obviously for fast world building iteration.
When I put these prefabs into a subscene they don’t show at all.
Only when I move the Rock_1_Mesh directly under the root of the subscene do I see it with the Hybrid Renderer in game view.
Am I missing something simple or is the current subscene workflow only for simple prefabs without hierarchies?
EDIT after some investigating: The problem seems that MeshRenderers not directly under subscene root will only show at 0,0,0 world position. When moving the objects holding them they show at the correct place only to go back to 0,0,0 when entering play mode.
Yes but why don’t i see the Rock_1_Mesh ( no physics stuff there ) in the game view with the hybrid renderer?
I only see it if I take it out of the prefab to subscene root.
Does the conversion just look at the whole prefab, see physics stuff there and ignore the whole prefab?
Unfortunately not. It’s also not showing without all the colliders. Also not if the prefabs unpacked completely. The rule seems to be the MeshRenderer can only be one step below subscene root or it won’t show in the hybrid renderer.
I’ve moved all the Mesh components to the prefabs root. But this won’t work with prefabs with multiple meshes so this will be a bit of a painpoint when converting more of the scenes. Is this intended behaviour or something still being looked at?
I assume scripting the conversion at runtime let’s us decide exactly what is being converted? If so I might instead go that route and then instancing them to their positions from some list instead.
Just seems like an unecessary step inbetween.
Try to move the root cube then move the child cubes and look at the gameview.
The children will jump to 0,0,0 and then move from there. Once you move the root cube again the others jump to their correct spots again. This caught me out because I just drag and dropped all the prefabs from the scene into the subscenes.
Basically I have to move all those prefabs just a bit once they’re in the subscene otherwise they show up at 0,0,0. Good to know.
Ok so I can’t reproduce this behaviour in the HybridHDRPSamples Project even though it has the same Packages installed.
It also has nothing to do with subscenes.
When I create a simple
Cube + ConvertToEntity
Cube2
hierarchy the Cube2 entity has its LocalToWorld exactly as its LocalToParent values which doesn’t happen in the sample project. I’ll just have to try moving everything over to a new project it seems…