Unable to get changed state in onPointerMissed #1398
Unanswered
xiaopohaier
asked this question in
Q&A
Replies: 1 comment 3 replies
-
good catch. most props on the canvas are one shot props, they're never updated. but in this case it's probably not the best idea. i'll flag this as a bug and fix it when i have time. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Code as follow:
https://codesandbox.io/s/strange-butterfly-8x38y?file=/src/App.js:305-320
1、click button to set variable

count
change2、click sphere geometry to get
count
value, output equals tocount
changed state(onPointerDown)3、click canvas to get
count
value, output is always initial state(onPointerMissed)Expect to get changed state in onPointerMissed, I guess is a bug and need help, thx
Beta Was this translation helpful? Give feedback.
All reactions