#Restricting clickable area inside a SubViewport

7 messages · Page 1 of 1 (latest)

still cargo
#

I have a game node with 2 SubViewports inside it, a split screen 2D game. First one has the level as the child node and displays the playerchar inside it. The second has the camera that's linked to level through script and moved freely, RTS camera style.

I need help with restricting clickable area only to the area where the second viewport is and make it so only this viewport can interact with the level (placing tiles).

Could move nodes and stuff if necessary for easier implementation or stuff.

kind basin
#

Are both subviewports in subviewportcontainers?

#

For the container/subviewport that you don't want to receive input, have this method always return false

hollow trail
#

u can also disable inputs in the subviewport

#

its a checkbox on subviewport inspector

still cargo