Create a script for my 3d laptop model.

Hi guys,

I am kind of new in Unity and working with 3D development. As part of my study we need to develop a Exit Game for VR devices bases on IT Security tasks which should be resolved to win the game.
For that we received a project form the courses last year who has started working on that.
We want to build a laptop with some functionalities like:

  • get notification about incoming messages
  • read Emails
  • open Social media
  • change password within Social media
  • lock the laptop or even shut it down

I have found in the asset store a perfect laptop asset for free. I downloaded it and work on the scripts (and for sure the objects).
I just want to get some input how to develop the given functionalities.
I thought about doing sth like this:

  • design various views of the screen and hide them, ex. the main
  • create a script which says: if object (e.g. app Email) is touched with the controller hide the current screen and open a new one (e.g. Email Overview)
  • for locking just add the shut down button to the keyboard and as soon as it is touched, unhide a black screen

Does that make sense? Is there any other way to develop an interactable laptop in unity?
How should the script look like? I do not have a clue…

Thanks a lot
Kiara

It sounds like you’re basically remaking a Twitter / Facebook / MySpace / WhatsApp client.

Are you aware of all that entails?

Whatever you do, if you do it all to a basic UnityEngine.UI.Canvas pane, then when you are done you can trivially make that into a world space Canvas and put it where your laptop screen is.

Good luck!

Just make a regular UI with either a world space Canvas or UI Toolkit with render texture?

Dude literally just posted a ChatGPT response….

That’s a bot.