alttester / alttester/AltTester-Unity-SDK

BeginTouch should make the touch Stationary the next frame if the touch was not ended or moved

オープン
#1,492 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug no version triaged
主要言語
C#
スター
121
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

At the moment BeginTouch creates a touch and set the TouchPhase to Began. This should only for a frame because when the TouchPhase is set to began. When this happen Unity consider that the touch was created in the current frame and will return GetMouseButtonDown(0) true. This will happen every frame even if it supposed to happen just once.

We can fix this by checking the next frame if the touch has changed the phase from `Began` to `Moved` or `Ended` if this happen we don't need to do anything but otherwise we need to set it to `Stationary`

## Steps to reproduce

1. Create a test that calls BeginTouch()
2. Check in the game what GetMouseButtonDown(0) return every frame
## Actual result

### AR

GetMouseButtonDown(0) returns true everytime

### Additional info

## Expected result
GetMouseButtonDown(0) returns true only once

### ER

### Additional info

## Testability

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。