In the process of developing AI People — a game featuring NPCs driven by a local LLM capable of extensive interaction — GoodAI team has crafted a practical solution for Unity developers working with the IL2CPP backend.
The new Process class implementation serves as a reliable alternative to the .NET System.Diagnostics.Process class, tailored specifically for Unity IL2CPP builds. Key features include customizable startup options, async I/O handling, and efficient process termination controls.
Developers can access and download the code here.
This implementation utilizes Win32 API calls, ensuring it meshes well with Unity’s needs while retaining similar functionality to the standard .NET class. Designed with modern C# practices, it supports the async/await pattern, offers proper cancellation support, and addresses resource cleanup efficiently. While it is focused on Windows platforms and works with Unity 2021.3 or later, the project welcomes contributions for improvements or bug fixes. By licensing under the MIT License, we hope to help the community maximally exploit the implementation. This tool is a straightforward step toward optimizing process management within the Unity ecosystem.
For more details, please consult the readme on the code’s github page.
Leave a comment