difficulty in detecting multi touch
In my game hero jumps when the player tap both fingers on the screen. I use Input.touchCount to find whether it is a single tap or 2 finger tap. The game works fine with this but I found out lot of...
View ArticleIs there a clean way for me to make it so that A tap doesn't interfere with...
I currently control my camera with a swipe across the screen. I also fire a bullet by tapping on a button located in my bottom left corner. I'm running into an issue where sometimes if tapping the fire...
View ArticleUnityEngine.XR.WSA.Input.GestureRecognizer.TappedEvent' is obsolete
![alt text][1]My application was working fine until last week. Today when I started, I have been receiving these warnings. I did not care much, but when I started the application in my hololens, I was...
View ArticleHow to make mouse click and tap work in same cases on boxCollider2d
I am making game for mobile and I want to do testing on the PC(clicking with mouse) but I also want to work on it the phone(tapping on button),so is there functions that will work synchronized,both...
View ArticleMaking a tap multiplier
How should I make a money multiplier like in Cookie Clicker? I need my multiplier to go up when the player starts tapping faster.
View ArticleTap/Click for Points
Hello. I'm extremely new to Unity and coding as a whole, and I'm making my first minigame. The game is just that you click or tap, and that's pretty much it. I need a counter so that with every click,...
View ArticleDestroy A Certain Instantiate On Tap Help?
So as the title states, what I am trying to do with these scripts is make it so that the game will spawn 0-5 objects and when a certain one of these instantiated objects are tapped, they are destroyed....
View ArticleUnity 2D. How to swipe without detecting tap?
So basically what I want to do is perform a jump (it has double jump as well) on tap and a dash on swipe right, but if I do it with "`if (Input.GetMouseButtonDown(0))`", then when I start swiping it...
View ArticleTap to click on Mac touchpad
The buttons in the UI of my game work fine, except when I try to tap them with a Mac touchpad, then it works only some of the time. It's very disorienting. Has anyone else experienced this or have an...
View ArticleSimultaneous touch inputs do not always work
In our game, we want the player to reliably tap multiple GameObjects to change their color. Currently it works most of the time. But sometimes it is only registering one of the touch inputs instead of...
View ArticleTap&Hold Android Game - weird problem with touch
Hello. Im making android game with tap and hold mechanics - when you tap and hold finger on your screen, the spaceship is flying. If there is no finger on screen - the spaceship i falling. I have...
View ArticlePiano Tiles type tile smash game algorithm.
Hello guys, I am making a piano tiles type tile smash game using unity2d. What I am doing is on everytile there is a script and on its update i am transforming the tile downwards. There is another...
View ArticleWhat's the right way to detect double tap on a phone?
What's the right way to detect double tap on a phone? `if(Input.touchCount>0 && Input.GetTouch(0).tapCount>=2)`
View Articlehow to change button state upon swiping and tapping?
![alt text][1] [1]: /storage/temp/138024-selection-464.png Dear all, I need some help on making a single button that changes state and appearance, either upon tapping or swiping it. the button stays in...
View ArticleHow to use simulateMouseWithTouches?
I have made a HoloLens Application and it involves the usage of tapping gesture and pinch and drag gesture. I now wish to use the same application on my Windows Desktop. To do so, I have built and...
View ArticleScreen touch issue with IsPointerOverGameObject
Hi! I'm making a kind of Flappy Bird game to learn a little bit. For now the game works fine, in Unity works as expected, but in mobile there is something that I can't solve. I have some UI buttons for...
View ArticleDetect if player wants to pause or to jump
hi i'm making a mobiel game and every time the player taps the screen the player jump.that's cool but i dont want him to jump when the player presses the pause button.i searched for a solution and...
View ArticleChange 3d Object with a tap / mouse click.
Hello, i've a problem... I created a *empty Game Object* and i write the script that create a sphere and when i click the screen or mouse button, the spere turns into a cube (destroy the sphere and...
View ArticleWhat's the BEST: most efficient, reliable, cross-platform way to detect a...
Hi, I've already seen and read dozens of questions and answers about how to detect a tap/touch on a 2D object on mobile (OnMouseDown, raycasts, sending messages to the touched object, using...
View ArticleHow to use hold/tap interactions in new Input System
Hi, I'm learning the new Input System and can't figure out how to use interactions. Everything is set, but I do not know how to code to do one thing with a single "tap" and another thing with "hold"....
View Article