I have a simple question.
I would like to spawn a ModelTarget (MT360) from C# code. I can simply create a GameObject and add the component:
GameObject go = new GameObject("ModelTarget");
ModelTargetBehaviour res = go.AddComponent<ModelTargetBehaviour>();
The resulting ModelTargetBehaviour is, naturally, not set up. The "Database" and "Model Target" in the inspector are --EMPTY--. And the physical LxWxH are all 0. Fair enough.
But is there any way to "load" a database into this ModelTargetBehaviour after creating it? All the databases I need are in the VuforiaConfiguration, since I imported them from the ModelTargetGenerator.
I need to set up multiple of these, enable one at a time and switch between them when I need. I can do this manually successfully, but now I would like to automate this...