Open Unturned's source code to inspect and modify its internal structure
You can open and modify the internal code of Unturned, a free open-world zombie survival game. This repository contains the game's source code and Unity project, serving as a starting point for learning how the game works or creating your own mods. Step-by-step guides are included for those new to complex game engines.
Setting up the development environment
To start development, install Unity Hub and the Unity 2022.3.62f3 editor. If you plan to modify the code, select the 'Game development with Unity' and '.NET desktop development' options in the Visual Studio installer. Steam must be running, and the Unturned game must be installed, as large game files and mods are loaded from Steam. Once ready, open the project in the Unity editor and open the Assets/GameStartup.unity scene.
Reference materials and demos
The README provides links to frequently asked questions (FAQ) and a source code demo available on YouTube. This demo shows the process of adding a missile that tracks columns, helping you visually understand how actual coding is done. It also includes links to Unturned modding documentation, allowing you to develop while referring to official guidelines.
Prerequisites for execution
Using this repository requires Unity version 2022.3.62f3 and the Steam client. Because the structure loads game data from Steam, the project may not open properly if Steam is not functioning correctly. Modifying the code directly requires basic knowledge of C# and the Unity engine, and you must set up the .NET development environment through Visual Studio. Since the game's binary files are loaded from Steam, an internet connection and access to the Steam library must be maintained at all times.