Sunday, October 22, 2017

Trackable Monitor

This is a little piece of code that makes it easier to write code that responds to when your targets go in and out of view.

Attach it to your TrackedImage game objects. To write code that responds to the target appearing/disappearing, just include the following two functions in your MonoBehaviour.

void OnTrackingFound() {
//code that runs when the target appears goes here
}

void OnTrackingLost() {
//code that runs when the target disappears goes here
}

You can download it here

No comments:

Post a Comment