Custom Build and Run is a Unity editor extension designed to streamline the testing and development process of multiplayer games using Unity and Nakama Server. With just a single command, it automates the building and launching of multiple standalone game instances alongside entering Play Mode in the Unity Editor, allowing you to test matchmaking and in-game interactions seamlessly.
This utility addresses the common challenge of testing multiplayer interactions in Unity. Traditionally, testing such features requires manual coordination between building the game, running multiple instances, and managing server connections. Custom Build and Run simplifies this into one step, saving time and reducing errors.
- One-Click Build and Run: Compile and run multiple standalone game instances with preconfigured settings using a single menu command or hotkey.
- Simultaneous Editor Play Mode: Automatically enters Play Mode in the Unity Editor post-build for each instance, enabling immediate testing of multiplayer features.
- Streamlined Workflow: Focus on development and testing rather than repetitive setup tasks, enhancing productivity and iteration speed.
- Clone this repository or download the latest release.
- Import the
CustomBuildAndRun.cs
script into your Unity project's Editor folder. - Access the utility through the
RimuruDev Tools
menu or by pressing the assigned hotkey (%F1
by default).
After installation, the utility can be triggered via the editor menu RimuruDev Tools/Build and Run + Play Editor Mode
or by using the hotkey %F1
. Ensure your scenes are properly configured in the Build Settings and that the Nakama server is running.
Use the menu command or hotkey to initiate the build. The utility will:
- Compile the game into a predefined build folder for each instance.
- Launch each built game instance.
- Enter Play Mode in the Unity Editor automatically for each instance.
RimuruDev Tools/Build and Run + Play Editor Mode %F1
Unity Editor: Ensure you have Unity Editor installed.
If you have suggestions for improving the utility or have encountered issues, please feel free to contribute:
- Fork the repository.
- Create your feature branch (git checkout -b feature/AmazingFeature).
- Commit your changes (git commit -am 'Add some AmazingFeature').
- Push to the branch (git push origin feature/AmazingFeature).
- Open a pull request.