Can someone tell me how to active a script only when my Image Target object appear and vice versa deactivate when Image Target is not visible?
Lots of ways to do this, here's one:
Take a look at DefaultTrackableEventHandler file and hook into OnTrackingFound and OnTrackingLost. And put something like this in there:
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?