There is currently no way to make render textures click through, either adding picking mode none to them or making some other way to click through them is a necessity if unity ui tool kit is supposed to be the main ui solution for unity.
3 Likes
Hi @alf3trillion !
Which version of Unity are you using? I tested this using the latest and I can click through a render texture. This is the setup that I used:
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<ui:VisualElement style="position: absolute; height: 100%; width: 100%; align-items: center; justify-content: center;">
<ui:Button text="Button" />
</ui:VisualElement>
<ui:VisualElement picking-mode="Ignore" style="position: absolute; height: 100%; width: 50%; background-image: url('project://database/Assets/New%20Render%20Texture.renderTexture?fileID=8400000&guid=b7ad05ee053050345b5726aa95e08a5d&type=2#New Render Texture');" />
</ui:UXML>
I created a new render texture and set it as the output from the main camera.
In the UI Builder, I can go in the preview mode (to allow events on the document) and I attached a gif with the results I get.
Can you give more information about your setup/project so that we can help identify why it is not working for you?
Hope this helps!
