I'd like to make a game with Unity, put the build with all the data on a USB key, plug it in another Windows computer, and run the game from the USB drive, then remove the USB drive, but keep the game running flawlessly.

How could I do that?

  • 2
    \$\begingroup\$ This may not be possible in Unity as you have relatively little control over when and how stuff is loaded and stored in memory. It's also very dependent on the host computer's availability of RAM (especially for a 3D game) \$\endgroup\$
    – CobaltHex
    Oct 27 '15 at 1:25
  • \$\begingroup\$ So is it possible if I use RAMDRIVE? \$\endgroup\$
    – creator
    Oct 27 '15 at 2:25
  • \$\begingroup\$ you mean just a ram disk in general? If so, then if you store the entire game there obv it will all sit in ram \$\endgroup\$
    – CobaltHex
    Oct 27 '15 at 4:37
  • 6
    \$\begingroup\$ Have you TRIED removing the memory stick while the game is running? If the game does not load anything while it is running (like new levels or sounds), and it fits into ram completely, maybe it will work. But your question does not imply that you have tried already. If you have, can you explain what happened and what went wrong? \$\endgroup\$ Nov 27 '15 at 12:59
  • \$\begingroup\$ ^ can you explain what happened and what went wrong? \$\endgroup\$
    – MickLH
    Apr 28 '16 at 23:35

You can accomplish this with a ram drive but at that point you might as well copy it to the host hard drive.

  • \$\begingroup\$ yes but I want to game disappear when turn off computer. \$\endgroup\$
    – creator
    Oct 27 '15 at 4:58
  • 1
    \$\begingroup\$ I think you can handle this with an OnApplicationQuit() function call \$\endgroup\$
    – Leggy7
    Aug 18 '16 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.