Hello every one,
I am currently working on a Lab, Level. It is a 1st Person. I have a lot of doors in the scene, and some need to be opened after punching in a code. My question is how can make that happened in Unity ? How is it posable for me to walk up to the Digital Dial, and make a menu pop up, and after i punch in the right number in the menu , the door will open ?
I added some screen shots so you can see what i am talking about. Need Help, some one Please

put a trigger in front of the door then pop a gui telling the player to enter code,
Ray
well, i am new to unity and can u give me a more detail. i have no idea what u r talking about. i would really appertained it.
Create an empty object in Unity (menu: GameObject > Create Empty) and add a BoxCollider component to it (Component > Physics > BoxCollider). If you select this object you will see the BoxCollider component in the inspector - it has a checkbox called “Is Trigger”. If you set this option, the collider will not react physically to collisions, but will instead report them to a script attached to the same object. You can add a function called OnTriggerEnter to your script - this will be called when an object enters the trigger box. The OnTriggerEnter function can then activate some code that uses the GUI system to draw buttons on the screen that the user can press.
Popping up a GUI to enter the code is one option, and probably the easiest, but another approach I’ve used is, when you hit the door collider, switch to an alternate camera and lerp it to a fixed position above the actual keypad. Then you can make the actual keys on the pad interactive, i.e. put a unique tag on each one, and use raycasting to get that value back when clicked. Then switch back to the first person camera when the door opens. This might be a bit more “realistic”, unless your game has some kind of augmented reality HUD, and it avoids the problem of trying to click 2D interface elements when mouselooking around with a first person camera.
cool, i will try that.
but lets say, i have a door, witch i will in-port separately in to unity. I will have an animation for it. i need to create that trigger so when i click on the door, it will open?.. but for some door there is a code required. it wont open with out it… and before i start the game i need to create a menu, with an image or tutorial displaying. again i am very new to this unity and i want to learn as much as posable. if u have any tutorials on how to make menus, or whatever it is. please let me know… thank you very much
i agree what u guys telling me… but i really need some serious help. i need some kind of detail description, step bye step guide line…
start by learning about GUI stuff here: http://unity3d.com/support/documentation/Manual/Game%20Interface%20Elements.html
and work out how to turn GUIs on and off when you hit a trigger by attaching a script to an object with an attached collider, i.e.
function OnTriggerEnter (other : Collider) {
if (other.CompareTag ("Player")) {
//do something to show the GUI here, like using SetActiveRecursive or by toggling a boolean controller variable...
}
}
ok i am very new to unity, and when people give me a code. i have no idea how to use is… what do i do , where do i place it. ???
here is ma scene… i am just trying to get truh that door… i want that door to open after i press the putton on the key pad…
well, perhaps you should take a step back and get into the documentation then - start going step-by-step through 3D Game Kit Reference Guide - Unity Learn, for example, along with the user manual and scripting guide, and you’ll make progress before you know it. You obviously have a handle on the 3D stuff, but to make a game, you’ll have to do some programming, although Unity makes it relatively easy.
To attach a script to an object, just drag the script in the project view and drop it on the gameobject in the scene view.
Hello 
Aldin, can you please make your screenshots smaller so its easier for us to read 
thanks 