Search Unity

Cannot show and hide objects in Vuforia with SetActive

Discussion in 'AR' started by bugzilla, May 2, 2019.

  1. bugzilla

    bugzilla

    Joined:
    Dec 9, 2008
    Posts:
    193
    I am attempting to create an Augmented Reality floating menu system in Unity and Vuforia. I created some buttons and they react correctly, but when I try and hide or show the proper objects (by setting the game object's SetActive property), Vuforia will only let me Hide objects, never Show objects. Any idea what is going on and how to get around this?

    Thanks
     
  2. bugzilla

    bugzilla

    Joined:
    Dec 9, 2008
    Posts:
    193
    Well, I was never able to figure it out, but I was able to paper over the issue by scaling the object to 0 then restoring it to full size when needed. Not as good as SetActive because I also had to manually pause other things the object was doing, but it works for now.