You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I made a gun which work both PC and mobile, and it works well. But one thing I missed in mobile is I made fire button but when touch the fire button then gun fire towards the button postioned.
I want to make when I touch the fire button then gun fire toward the center of the screen (world position).
- What is the issue? Include screenshots / videos if possible!
- What solutions have you tried so far? Did you look for solutions on the Developer Hub? (Yes… a lot)
I tried TouchTapInWorld functions, ScreenPointToRay, ViewportPointToRay, Maybe these functions should be a solution, but I’m a beginner scripter. So maybe I write the wrong code.