Skip to content
Discussion options

You must be logged in to vote

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() }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasGorisse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #412 on May 27, 2024 10:11.