How to render in the Editor Scene View only?

Avatar
  • updated

Hey,

I was wondering how can I render shapes (components and I assume similarly immediate mode shapes) in the Scene View only but not in Game View in the Editor?

Having said that, I don't want to disable shapes rendering in the Game View entirely, I just want to not render some (a few) shapes in the Game View but instead render them in Scene View only.

Thank you in advance :)

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator

for components there isn't really a nice way, apart from using Unity's layers to put your scene-only objects on a layer that's invisible in game cameras

For immediate mode shapes, you can check the camera type to check whether it should draw or not