playMaker

Author Topic: Mouse UI Events Passthrough from RenderTexture to Camera  (Read 728 times)

Skook

  • Playmaker Newbie
  • *
  • Posts: 1
Mouse UI Events Passthrough from RenderTexture to Camera
« on: May 23, 2019, 08:43:54 AM »
Allright. So I have two cameras: MainCam which is where the Canvas and UI is setup. I also have a RenderTexture in that UI that renders a scene through SubCam.



So all in all, what I need that when my mouse cursor enters the RenderTexture, which is in MainCam, the SubCam starts raycasting for colliders and then return a hit so I can then use MouseOver, MouseUp, etc. just like it was a standard camera.