I’m coming from a Unity perspective. Paper2D seems to be really more developer friendly then Unity’s Sprite Engine. I do have a c++ background although it’s been 7 years.
I have completed the FloatingActor tutorial and I would like to know how can I detect a Mouse Click and a Touch on that object. Although FloatingActor is using 3d it should be a good enough starting point. c++ or blueprint to c++ would be great! If nothing else, just point me in the right direction.
(I originally posted this to the answer hub, I believe that was the wrong place or was it correct? )
Many Thanks! Bubba
Or, just have a generalized MouseClick event in your controller that does the following:
OnMouseClick perform a raycast and see if it collides with an object.
If it does, deselect anything selected.
Then check to make sure its the type you need it to be.
This documentation here has a good basics on ray-casting to find items in a scene based on what the mouse is looking at. Doesnt include on click, but just add a click event that calls something similar to this and it should work.