miwarnec / DOTSNET

Public DOTSNET issue tracker
20 stars 0 forks source link

Entities invisible with URP and Hybrid Renderer V2 #41

Closed Orobas42 closed 3 years ago

Orobas42 commented 3 years ago

Describe the bug Entities are invisible with URP and Hybrid Renderer V2 if they are created in sceneview and attached "Convert To Entity" with "Convert and Destroy" to them. Spawned prefabs at runtime are instead visible and working just fine.

To Reproduce

  1. Create a new Project
  2. Import DOTSNET and Universal RP
  3. Enable Hybrid Renderer V2 and convert materials to URP
  4. Open Benchmark Scene and click Play -> Ground is not visible in scene but the entity was created and shows up in the Entity Debugger -> When starting server and connecting client, all spawned monsters and the player are instead visible

DOTSNET Version

Orobas42 commented 3 years ago

Small Update/Workaround: With "Convert To Network Entity" and "Convert and Destroy" it works, because it's not in the DefaultWorld. That is why the spawned prefabs are rendering just fine because they are created in the Server/Clientworld.

Is this the expected behaviour or should entities in the DefaultWorld also be rendered? @vis2k

miwarnec commented 3 years ago

I vaguely remember reading that hybrid renderer v2 (or URP?) can only render in one world. so that's expected. feel free to ask unity about supporting two worlds, which is probably not gonna happen

miwarnec commented 3 years ago

added a chapter to docs https://dotsnet.gitbook.io/docs/user-manual/hybrid-renderer-v2-urp