XaeroDegreaz
Topic Author
Posts: 29
Joined: 26 Nov 2013, 04:47

Button click events when rendering GUI to RenderTexture

13 Dec 2017, 00:47

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?
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Button click events when rendering GUI to RenderTexture

13 Dec 2017, 01:14

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.

Who is online

Users browsing this forum: Google [Bot] and 1 guest