Add opt-in double-click functionality to interact button #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#24 に関連して、特定のボタンを誤発動しにくくするためにダブルクリックを必要とする機能を
InteractButton
に追加しました。この機能はデフォルトで OFF で、ワールド開発者はプレハブのオーバーライドで任意に Clear ボタンなどに設定可能です (つまり、破壊的変更ではありません)。長押しでない理由: 長押しとダブルクリックのどちらが誤発動に効果があるかは諸説あると思いますが、長押し (一定時間ずっと一定距離内で interact し続けているか) を判定するのは複雑なためです。