+1 vote

I would like to use a Viewport to display a 2D scene inside of a 3D world (similar to the Demo example 2D in 3D). Inside the 2D scene I have Area2D nodes containing a Sprite and a CollisionShape2D. Is there a way to use the input_event signal from the Area2D to handle input?

In my 2D only scenes I use Area2Ds and the input_event signal to handle mouse/touch input. I'm hoping I can do the same thing from within a Viewport embedded in a 3D scene.

Any help on this would be greatly appreciated.

Thanks!

Godot version v3.5.stable.official [991bb6ac7]
in Engine by (21 points)

1 Answer

0 votes

related to: https://gamedev.stackexchange.com/questions/201942/how-to-make-a-collision-object-within-a-viewport-detect-mouse-inputs

(Sub)Viewport > Physics > Object Picking = true was helpful for me.

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.