Use the property enabled of the ImageDrawable and set it to false, when creating it. In the onClick event, set it true.
h
heba Muhammad
said
over 8 years ago
Yes I tried this sample, but I coudn't make AR.ImageDrawable be shown except by
drawables: { cam:{ } }, How can do that in onClick ?
P
Philipp Nagele
said
over 8 years ago
For the button you could use a AR.ImageDrawable as an augmentation. Then in its onClick method you need to enable the other augmentation (like 3D model). A similar approach can be found in the sample "3D Model > Interactivity". But instead of the method toggleAnimateModel you should enable the drawable.
h
heba Muhammad
said
over 8 years ago
I need to show button in marker scan as a content of this marker, then in its onClick event I can show/hide another content like Image/Video/3D Model
heba Muhammad