"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Image Target and Prefab

Good evening everyone, I'm developing an AR app with Vuforia and I'm having a problem. I made a classic "image target" in which I inserted a 3D prefab linked to ui configurable menu(to change material, color, ecc..). Now I need to create a new image tag but which calls the same 3d prefab in other position. I thought of creating a prefab instance via script when recognizing the tag, but it only works in part. That is, it displays the 3D model in new position, but when I try to "change" color or anything else, the changes are made only to the original prefab and not to the instance created. Is it possible to create an instance / clone that updates itself with the prefab? Or is there another way to do it? Is a way through the TrackableEvent to do this: Image1> load Object A Image2> load Object A + new position + keep link to ui buttons Here is the script with which I create the clone:

using UnityEngine; public class Clone : MonoBehaviour {     public GameObject myPrefab;    void Start()     {         GameObject go;         go=Instantiate(myPrefab, new Vector3(0, 0, 0), Quaternion.Euler(0, -180, 0)) as GameObject;         go.transform.parent=transform;     }   }

 

Thanks in advance

Attachment