Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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:
    196
    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:
    196
    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.