I am trying to make an app in AR in which I have some 3d objects placed on same plane ground. I want to make those objects visible when the Gui button is clicked of that specific object and hide the others I have used the following code but it's not working. Whenever I touch the screen all the objects becomes visible overlapping each other, when they should not appear if I touch but click the button.
public GameObject 3DModel_One;
public GameObject 3DModel_Two;
public void ButtonClicked(){
3DModel_One.SetActive(true);
3DModel_Two.SetActive(false);
}