- XaeroDegreaz
- Posts: 29
- Joined:
Button click events when rendering GUI to RenderTexture
Hello,
I have a simple UI that works when drawing to screen, but when I create a Quad, and add the RenderTexture to it and have the NoesisView Camera draw there, my buttons no longer work.
Is there a trick that I need to do to get this to work?
I have a simple UI that works when drawing to screen, but when I create a Quad, and add the RenderTexture to it and have the NoesisView Camera draw there, my buttons no longer work.
Is there a trick that I need to do to get this to work?
Re: Button click events when rendering GUI to RenderTexture
Yes, from the Unity Tutorial:
If you want to interact with the GUI rendered in the texture, your GameObject must have a MeshCollider component so texture coordinates can be obtained when doing the hit testing projection.
If you want to interact with the GUI rendered in the texture, your GameObject must have a MeshCollider component so texture coordinates can be obtained when doing the hit testing projection.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest