x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Operating System In UE4

Would it be possible to build and OS inside of Unreal Engine?

Product Version: UE 4.14
Tags:
more ▼

asked Jan 18 '17 at 10:48 PM in C++ Programming

avatar image

SpiritAnimals
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Sort of, it depends what you exactly want to achieve. You could probably even embed a full virtual machine (emulator) in UE4, which then could run an off the shelve OS. It would, however, be unlikely that you'd get anything useful that way.

Instead, you may actually want an OS-like experience in your game? You can, for example, allow the player to run their own "apps". These apps could be written in, e.g., JavaScript and executed by an embedded JavaScript engine (see Marketplace). Your game could provide custom functions to the JavaScript engine, allowing it to control your game. This would be somewhat like system APIs a regular OS offers.

Beware that when you allow the player to run arbitrary code/scripts that exposes a security threat. Even a well tested JavaScript engine, like V8, will have vulnerabilities and needs regular updates. It would be a good idea to allow the player to only run "apps" they create themselves, or better yet, only apps you provided. If players need to write their own apps, they may copy paste something insecure without understanding it. However, if all apps could be written by you, I guess you're more after an "OS-like" user interface.

If this doesn't answer your question at all, I guess you have to elaborate a bit on what you want to achieve with this OS.

more ▼

answered Jan 19 '17 at 04:50 AM

avatar image

amcofi
530 9 83 49

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question