Invisible entities in build

Hey,

I got this custom physics code running with cylinders colliding with each other. These cylinders are converted from prefabs and instantiated. Everything works in the editor.

But when I build for OSX, I can’t see them, but I know the entities are there, I log collisions, and that shows up in the log correctly. These cylinders move around on a Mesh (a GameObject), that one is visible.

Can anyone think of a reason why this is? This is using the following packages:

“com.unity.dots.editor”: “0.11.0-preview.3”,
“com.unity.entities”: “0.16.0-preview.21”,
“com.unity.platforms”: “0.9.0-preview.9”,
“com.unity.platforms.macos”: “0.9.0-preview.9”,
“com.unity.render-pipelines.universal”: “10.1.0”,
“com.unity.rendering.hybrid”: “0.10.0-preview.21”,

Thanks!

Hi,

Can you see if you attach the frame debugger if there are any drawcalls for these entities happening? That would make it possible to know if the draw is there (with bad data) or if the entities was skipped earlier for some reason.

Thanks for the reply. I’m unsure how to run the frame debugger on the OSX build, I tried figuring it out from the documentation, so I’ve made Developer build, but it’s still not showing up in the frame debugger.

EDIT: got it working! Apparently there’s two ways to build these days, via some build files and then there’s the legacy(?) system. So I configured the build file but pressed the old Build, that uses the legacy settings I guess.

I’ll try it out now!

Not sure why it’s not working. Here’s a screen cap from the frame debugger, all my 100 cylinders seem to get drawn but I just can’t see them. I also disabled the ground mesh, incase there was some z issue with it being drawn on top.

Any clue from that screenshot joelv?

Thanks!

If I create a cube, just a default cube, mark the ConvertToEntity, then when I tap play it also disappears.

Can you share the material info you use ? I think you may need to set it to be GPU instanced with the Hybrid renderer.

Hey, thanks for the reply. The initial material didn’t have GPU Instanced set, but now I tried it, but still no luck.

BUT, I started reading the other threads, and I had SRP Batcher off, and once I enabled it, it works!

I know exactly what it is, if you’re trying to use the Hybrid Renderer v2.
Here is the manual on how to enable the Hybrid Renderer v2. After that, you should see all entities.

1 Like

Hey, thanks for the reply. I had done that already, but without checking the “SRP Batcher” it still didn’t work. But now it does.

Great that you got it working!
Yeah the setup for hybrid is not obvious right now sadly and we are working towards making it easier and will try to have better error messages.

2 Likes