In a scene where i have multiple markers, and thus multiple models.
How do i make buttons appear depending on the AR model that is showing ?
for example when model 1 shows, i only want to see button A.
when button 2 shows, i only want to see button B (A has no function for model 2)
and so on...
and if so, as a second question, i was wondering if there is a way to make the "detection" trigger something.
for example, i want the buttons to slide into the screen, instead of just popping up.
but somehow the detection of the marker, should trigger the sliding process.
can this be done ?
Have you got this working?
A simple approach would be to assign the button object as a child of your model, or a GameObject encapsulating your model. Then execute your animation from the Trackable's event handler - either the Default Trackable Event Handler, or a custom event handler that you write.You could use an Animation component, or animate the button procedurally.