Hi, the best is then (at runtime, i.e. via script) to only enable the rendering of one of those models, and disabling all the others;
this is simpler than attaching / detaching objects to/from the scenegraph at runtime (although that's also a viable technique).
That's why i was suggesting to use this code (to make objects visible and invisible):
Renderer[] rendererComponents = GetComponentsInChildren<Renderer>();
Collider[] colliderComponents = GetComponentsInChildren<Collider>();
foreach
(Renderer component
in
rendererComponents)
{
component.enabled =
false
;
}
foreach
(Collider component
in
colliderComponents)
{
component.enabled =
false
;
}
Otherwise you can also instantiate ojects from Prefabs at runtime and then attach them under the image target objects;
this is discussed in this Unity page;
http://docs.unity3d.com/Documentation/Manual/InstantiatingPrefabs.html
Hi, I'm not aware of a way of directlty accessing and modifying C# script variables from Java (Android),
however, if you want to be sure, this is a question you may want to verify directly on the Unity website.