#Render Object not rendering in build

1 messages · Page 1 of 1 (latest)

dark oak
#

I have a CRT screen material applied to an object with an assigned IgnoreSSAO layer, and assigned that layer to a render object, in order to prevent it from being rendered with SSAO. (Following this thread: https://discussions.unity.com/t/remove-urp-screen-space-ambient-occlusion-on-specific-layer-gameobjects/947831/3)

The material renders perfectly fine in the editor, but not in the build. I'm able to replicate the issue in the editor if I toggle the render object off, or change the Event / what pass it renders at.

Pic 1: intended, in editor
Pic 2: in build, material not rendering
Pic 3: editor, replicating visuals of issue

dark oak
#

bump

dark oak
#

can confirm now that this occurs on both mac and windows builds

ornate glade
#

Check if you have multiple Renderer assets (i.e. per quality setting). You might only have the RenderObjects on one

#

Might also be good to check the CRT material renders in builds normally (without renderobjects). To confirm if the issue is with the feature or the shader itself

dark oak
#
  1. Yeah, i only have one PC render asset
  2. Yep, the same shader without the Render Objects setup has worked fine for many months now

I ended up just getting around this by scrapping the Render Objects / layering setup and making the CRT material type Transparent with Alpha of 1, to hackily ignore the SSAO