As a web dev learning game dev, how can I keep my dev environments and engine installations isolated from the rest of my personal computer and keep things updated as my dependencies & engines have new releases? It feels like package management and version control are way harder.
I am used to this idea that I can always wipe out my entire project and redownload it from GitHub or version control, quickly run my build process to pull dependencies from whatever dependency management manifest/list/system I have, deploy to the web or spin up a local server, etc. But with Unity and Unreal, is there a recommended convention or best practice? Should I be trying to keep my engine updated? Are there specific tools to manage dependency upgrades? Is there a good way to keep my dev environment isolated from any other computing (gaming, media, etc) that I am doing on this machine?
And in my web dev experience, as new versions of dependencies are released, my package manager of choice - bundler (Rails) or npm/yarn/bower (JS) or pip/virtualenv/wheelhouse (python) or NuGet (C#) - will manage upgrades for me and my code should mostly just work. Is there anything similar I can do with Unity/Unreal?
I haven't used Docker much but is that becoming a popular way to handle isolation? Or perhaps running things in VMware or HyperV?
I am incredibly incredibly new so I apologize if these are too basic of questions. I get really scared when I pick back up little Unity/Unreal projects from 6 months ago and realize I'm now out of date and if I want to wipe things clean and reinstall a fresher copy I feel like I'm going to be leaving artifacts since Unity/Unreal are installing stuff to C:/Program Files and god knows where else.
About this post
- Posted
- Archived
- Score
- 5 ยท 100% up
- Kind
- Text
- ID
- akteny
5 comments
The short answer is - we don't do that.
A lot of what web devs do daily would be considered bad practice elsewhere, such as installing tons of unaudited 3rd party software from untrusted package managers. But this is part of how you get productive in Javascript because the standard library is anaemic and you need to drag in hundreds of modules to be at all productive.
With something like Unreal and Unity you often don't need any other dependencies at all, so this problem doesn't manifest. But there also isn't a culture of using package managers anyway, so you're more likely to just drop any 3rd party source directly into your repository. Unity is starting to offer its own package manager but it's still early days yet.
Docker is not suitable for game development, as it's not really designed for direct access to I/O devices, which is basically what games are all about.
As for updating the engine, you need to get a feel of what that engine's update policy is like. Some people rarely update at all after a project starts. Others choose to update often, best done on a new branch. But since we don't have a culture of flattening everything and pulling from the repo and package manager all the time, this is not a problem we often have and we don't need to pin dependencies or whatever - we update only when we mean to.
Perhaps make another drive?
First off, as a tip from a (young) web dev who is currently studying Game Design and specialising in game development: The new version of the engine won't always accept an "upgrade" of your old projects (they usually do these themselves, though. No third party needed). Especially Unreal Engine 4 and it's subversions are extremely picky, when it comes to version upgrades from older stuff.
When you set up a project you should have the settings all good to go in the beginning and change as few, as necessary, during development. As long as an engine isn't releasing any major bug fixes or new features it is not worth the pain, trust me. If you update during development it might just happen to crash your project here and there.
Subversion Control: Most C++ based engines save their stuff as binary files (can be altered, though). Merging binary files that have been edited on multiple ends is the big oof, don't do that. Obviously you should keep backup, but I won't have to tell you that. Most of the devs I have met so far, are using any form of Git client. There are plenty of good templates for gitattributes and gitignore on the web for Unity and UE4, you can look them up.
Isolated Computing: I have no clue. Genuinely I never tried to isolate my computing from the rest of my environment. Since Analytics becomes pretty important later during development in a project, I want that to generate as clean data, as possible to see where the weak spots in performance are, so even if I have no clue how it would work, I wouldn't attempt it. However, that's just me.
Sorry for the long post, have these digital imaginary cookies --> ๐ช ๐ช ๐ช
So the more accepted practice is to get the latest, then from then on don't upgrade Unity or Unreal unless you are going to start a new project? Is it easy to have multiple different projects that use different versions of the engine and switch between them?
No need to apologise for the long post, thanks for the pointers!
In Unity switching versions is by my experience okay-ish-ish (possible but without "good" reason to be avoided). In Unreal Engine 4 (and any subversion) switching versions between more than one or two version numbers is painful, sometimes even impossible. So In conclusion: Yes, One Project, One Version, except when there's important fixes or the likes.
When you want to migrate stuff from one project to another, however, you can simply export all your assets, that you want to migrate, and then reimport them. Most engines provide good features for that (Unitypackages e.g.) So the version won't give you any trouble, switching out scripts or assets. Assets can be done in bundles, too. That way you can provide the same Assets from the same directory to mutliple projects!
โ
EDIT: Oh you meant having different versions of one engine, sry! Yes, you can do that! For Unity I recommend using "Unityhub" there you can do version management and set up multiple versions. For Unreal Engine 4 you can manage different versions in the Epic Launcher!