I have to Toast a message when an Image is detected. Which is the easiest way to do? Using Unity or just using JAVA without native calls?
I've tried all the ways given in the developer.vuforia.com site
I've tried 1. How To Extend the Unity Android Activity 2. How To Use Android Plugins in Unity Apps 3. How To Add Views Over Unity for Android 4. How To Display Toast on Target Detection and Open Website
But nothing works.. Please guide me or send a link of a working sample
I really appreciate your efforts . but there is very simple way to do this:
Try this script
using UnityEngine; using System.Collections;
I am using unity extension but i m pretty sure core codabase is the same. Image target uses the class called DefaultTrackableEventHandler and there is OnTrackingFound() function. This is called once the image is detected so you can implement your message in there! This is how I do it anyways. Good luck