AddGestureHandler without RemoveGestureHandler #319
Unanswered
GentleHoatzin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
You can add it into OnDisable or Destroy method. I am not sure which one is a better choice. As scripts in nova samples say, maybe disable method is better. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello, seeing the example DropdownVisuals code, i see that there are multiple AddGestureHandler, and i noticed that there are no corresponding RemoveGestureHandler in the same code.
It's required to call a RemoveGestureHandler, after i have finished using a AddGestureHandler?
Or i can leave it, without creating a memory leak of some sort?
For example, if i change scene
Beta Was this translation helpful? Give feedback.
All reactions