Log in or register to post comments

Dynamically assign pre-defined trackables to Image Targets via script- Unity3d

January 2, 2013 - 5:16am #1

Is there any way to dynamically assign Pre-Defined Trackables to each of the Image Targets via script instead of manually assigning them through inspector in Unity3d????

Thnx for the prompt reply.I

January 3, 2013 - 2:13pm #3

Thnx for the prompt reply.

I went threough the example very thoroghly but I am still stuck at


     // Loop over all Targets.
     for (int i = 0; i < numTrackables; ++i))
             GameObject go = dstb.gameObject;    
What is dstb ???  And how to fetch it ??        

Yes but you don't need to

January 2, 2013 - 8:29am #2

Yes but you don't need to assign them to ImageTarget prefeb instances, those are simply used as an authoring tool within Unity. Rather you can obtain the trackables from your active device database(s) programmatically and assign your augmentations to these at runtime. See: https://developer.vuforia.com/resources/dev-guide/swappable-databases-unity

Log in or register to post comments