Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
RoxGame's avatar
RoxGame
Protege
3 years ago

OVR OVERLAY (UNDERLAY) problem

am trying to implement ovroverlay underlay but nothing work for me 

what i did is the following

1- add quad with ovroverlay and set  type to underlay

2 - add quad with same size and same position with shader oculus/underlay imposter

when i build i get only black quad 

am i missing something?

4 Replies

Replies have been turned off for this discussion
  • Same problem, I'm on URP, do I need to redo the shader in URP pipeline?

    • RoxGame's avatar
      RoxGame
      Protege

      Yes you have to write your own version of underlay shader for urp 

      I tried but i didn't succeed I don't have good knowledge of shaders

      So i switched back to built-in it work good for my use case

  • For your step 1.  When you say you added a Quad to your Overlay, do you have two game objects, each with a Quad Mesh, or are you referring to the Quad type inside the Overlay component?

    • RoxGame's avatar
      RoxGame
      Protege

      First one should have only script of overlay (with type underlay) 

      Attach quad child to it and make sure you add  you add impostor shader to it

      Make sure the quad is in backside of the parent few units like 0.01 back