0:54. Link should set that time in the video by default(well, never mind. this site sets it to the beginning).
In this game, the player walks up to a terminal, presses a button, i assume they lose control of the character, and they can type on the terminal and execute commands. The camera stays the same, only thing that changes on screen is the terminal text.
Now, the actual game (0x10c) actually has like an entire OS or something in the terminal, but I only want it to be able to type in commands and store them as strings, so I can then check them and make the game work in relation to that.
My initial idea would be: make the terminal work on a canvas, have a camera look at it and then project what that camera sees on the terminal screen.
But my main problem is that I do not know how to make the “canvas terminal” itself. I dont know how to make the player start typing on it.
So how do i make this? Is there a better alternative than projecting what a camera facing a canvas sees?
Sorry if this question is kinda messy
It’s kinda mucky… work through first just getting it going in its own scene, a canvas with a text object, or a list of text objects, parse the incoming keystrokes, concatenate them into strings, store them when you press ENTER, etc.
Once you have that working, then you can look into packaging it as a prefab to load and overlay when the user walks up and interacts with the terminal.
The good news is that if you use Unity’s canvas UI system, you can even make it an in-the-world object for extra immersion points.
Please don’t necro old posts. Create your own thread.
Creating an in-game terminal is not a trivial task, you can’t just expect a script you attach to a game object and boom you have a terminal in your game. First you need to familiarize yourself with Unity UI system: how to display text on the screen (Screen Space UI), how to create an input box where the player can type text…etc, once you’re done learning this, you need to display all of that in the game world (World Space UI). Once you have this working, you just need to detect the user interaction (button press - Input System) when the user is near the terminal (Triggers or Distance Checking) to display your terminal.
* I highlighted Unity systems you should learn in bold