How would you recommend to implement a hold to press button?
by user 103054507105067008
How would you recommend to implement a hold to press button?
by user 103054507105067008
Would this.context.input.getPointerDownTime(0); this help you?
You can calc the length of the press with this.context.time.time - this.context.input.getPointerDownTime(0)
is this what you mean?
Yep that should do, needing to do some simple rotation/move/scale logic for an AR scene but my manager wanted it done for this morning which I don’t have time for so I was going to make buttons to do each thing as a fallback before I figure out gestures
by user 103054507105067008
Once I do sort scale/move/rotate with gestures I’ll share it back here for samples
by user 103054507105067008