Log in or register to post comments

Activate script when model is detected

SDK 10.0
October 24, 2021 - 2:10pm #1

Hello, 

I would like to activate some functions in a script when a model target is "detected". I've been reading online that On Target Found () should be used but I've never found a complete tutorial or guide to follow from A to Z.

Can someone help me with this Issue?

Thanks in advance

SDK Version: 

Activate script when model is detected

October 26, 2021 - 6:25am #2

Hey there,

 

While it's not a direct tutorial on what you need, you can find more information about how to use the OnTrackingFound method here: https://library.vuforia.com/unity-extension/working-vuforia-engine-and-unity#dynamically-add

You should remove the DefaultObserverEventHandler from your target and create a new one which inherits from DefaultObserverEventHandler. After that you can override the OnTrackingFound method and call any functions you want. 

I hope that helps a little.

 

Kind regards,

Patrick Scheper

Technical Community Manager

 

 

 

Log in or register to post comments