Each click event from multiple anchors #505
-
hello! `
` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Likely, you will need to configure the onSingleTap property along with another property called isTouchable, understanding that the onSingleTap property should be assigned to a function, which in your case would be to display the Toast. But it's also possible that what you need to touch is the model and not the anchor, which would leave you with something like this
|
Beta Was this translation helpful? Give feedback.
Likely, you will need to configure the onSingleTap property along with another property called isTouchable, understanding that the onSingleTap property should be assigned to a function, which in your case would be to display the Toast.
onSingleTapConfirmed
But it's also possible that what you need to touch is the model and not the anchor, which would leave you with something like this
val modelNode = ModelNode(modelInstance = it).apply { playAnimation(0) isTouchable = true onSingleTapConfirmed = ::showToast() }