During the development of the game I was faced with the task of implementing not just a computer, but an in-game operating system. This is not the main task of the game, but a part of it, some transactions will be made through the computer or programs that are useful to the player will be launched, that's not the point. The essence of the implementation - you need to draw in real-time on the monitor everything that is happening in the system, and by pressing the button, the interaction "enter" into the system, accordingly interact with it. I tried to transfer through the canvas in world space to the overlay, but there are problems with the size of the canvas itself after the transfer. What better way to do?
1 answer
- you need to create a schedule on the monitor screen
- apply material to it with Render Texture https://docs.unity3d.com/Manual/class-RenderTexture.html
- Render a picture from another camera on it (described for the same link)
- What would be convenient to interact with the computer I advise you to completely switch to the view from this other camera
And on the other camera, the canvas should already be drawn.
|