Important: s&box is only partly open and platform-bound
s&box's engine source code is MIT-licensed, but some native binaries are under the s&box EULA, so it is only partly open source. Games are played through the s&box platform rather than shipped as standalone executables, which ties your audience to it, and it suits prototyping and small to medium projects.
Closest to Unity
Godot is the closest: a full-featured 2D, 3D, and XR engine with its own scripting language, a scene editor, and export to many platforms, under MIT with no fees or royalties. It has a steeper learning curve than GDevelop, and its node-and-scene model differs from Unity's.
No-code and code-first options
GDevelop is a free engine with a visual event system and one-click publishing to Steam, mobile, web, and desktop, so it offers less direct code control. MonoGame is a C# and .NET framework for desktop, mobile, and console games with no editor or scene graph, and console access requires approved developer status.
License details
Godot and GDevelop are MIT, MonoGame is under the Microsoft Public License except for a few portions, and s&box's engine source is MIT with EULA-covered native binaries.
Maintenance status
Godot, GDevelop, MonoGame, and s&box all had commits within days of this update.