- Home /
How to pop out gameobject to screen when player activates it?
Hi everyone,
I am very new to Unity, and I am using this software to make games and environment in Virtual Reality (VR). So my environments are first-person POV. In this specific environment, I have a world map on a scroll. The scroll is lying on top of a slanted podium and is opened, so you can see the world map on it. I want the scroll to pop out to the player's field of view when the player activates/hits/interacts with it, so that you will only see the world map in front of you. Then the player can select a country from the world map to choose from.
How do I do this? Should I do an animation? Any videos that you guys can recommend that will help me do this animation?
Thanks a lot all. Any help or advice will be greatly appreciated! :)
Answer by tormentoarmagedoom · Jun 17, 2018 at 11:06 AM
Good day.
If you want to create a new object in the scene, you shoud use Instantiate() and use Destroy() for remnove it.
But if what you want to activate is a canvas (User interface) maybe best option is to Activate and deactivate vie SetActive(true) / SetActive(false) so the canvas is always in the scene, but is activated/desactivated.
IS that what you was asking? If not, give more info, paste some screenshot, etc..
Bye!
Your answer
Follow this Question
Related Questions
Problems with Bake light 2 Answers
i can't click the object build on pc vr game googlesamples 0 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
Limit space for a child object 2 Answers
Vive: converting the lateral movement of the controllers into the rotation of a gameobject. 1 Answer