By mcoster
on Wed, 07/25/2018 - 12:58
I feel like this is simple enough that it has been answered, but I just can't find exactly what I'm looking for.
I want to have a dataset with a number of image targets, eg. car, bus, person, etc. I also want to have one 3D model that directly corresponds to each of these targets, eg. car.fbx, bus.fbx, person.fbx, etc. Then, all I want to do is programmatically associate each image target with it's relevant 3D model, using names/filenames.
Any tips?
Lots of ways to do this.
Lots of ways to do this. Maybe consider a dictionary of prefabs that are loaded from the Resources folder with the key being the target name. Then in OnTrackingFound, get the trackable name, look it up in the dictionary then load the prefab.
Thanks for the pointers,
Thanks for the pointers, dpizzle. I'll give the dictionary of prefabs approach a go first.