I am trying to write a simple game that allows the user to create a user-defined target at the start.
So far I'm having trouble getting user defined targets to function as intended. When I play my game, my User Defined Target appears to be tracked in the Console and Scene window, but I don't see anything happen in the Game window.
I followed this guide to get my UserDefinedTargetBuilder to draw a GUI button to the screen, and to create and track a clone of an ImageTarget object placed in my scene when the button is pressed: https://developer.vuforia.com/forum/faq/unity-how-do-i-create-simple-udt-app
The camera appears to recognize the UserDefinedTarget clone properly, it just doesn't render its children in the Game preview window.
When the user defined target goes out of screen, I see the following message:
Trackable UserTarget lostUnityEngine.Debug:Log(Object)DefaultTrackableEventHandler:OnTrackingLost() (at Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs:105)DefaultTrackableEventHandler:OnTrackableStateChanged(Status, Status) (at Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs:56)TrackableBehaviour:OnTrackerUpdate(Status)DataSetTrackableBehaviour:OnTrackerUpdate(Status)
Trackable UserTarget foundUnityEngine.Debug:Log(Object)DefaultTrackableEventHandler:OnTrackingFound() (at Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs:84)DefaultTrackableEventHandler:OnTrackableStateChanged(Status, Status) (at Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs:52)TrackableBehaviour:RegisterTrackableEventHandler(ITrackableEventHandler)DefaultTrackableEventHandler:Start() (at Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs:30)