基于组件 · C#/.NET · MPL 2

用 C# 制作游戏。

C# 组件与热重载 Vulkan 1.3 · Silk.NET 自包含发布
Spinner.cs — Assets/Scripts/
namespace Usercode;

public class Spinner : Component
{
    /// Rotation speed in degrees per second — editable in the inspector.
    public float speed = 90f;

    public override void OnUpdate(float deltaTime)
    {
        Node.Transform.SetRotationX(Node.Transform.Rotation.X + speed * deltaTime);
    }
}
terminal
$ turian-cli compile ./my-game
$ turian-cli export ./my-game --standalone
→ cooked 12 assets · compiled game · 1 standalone binary ✓
.NET托管运行时
1全栈语言,一竿子到底
1GPU 后端
1自包含发布包
MPL 2无需授权费,免座位费
全在一窗之中

为制作游戏而建的编辑器

Turian 将可视化编辑与 C# 和 .NET 10 结合。引擎和游戏代码使用同一种语言。

Visual editor

Scene hierarchy, inspector, asset browser and a live 3D viewport — all in a single window built on the Gaya platform.

Component system

Inherit from Component in any C# class and it appears in the Add Component menu with full field inspection.

Live script discovery

Drop a .cs file into Assets/Scripts and your component shows up immediately — compiled and refreshed while the editor runs.

Asset pipeline

Loads glTF 2.0 / GLB, OBJ, PNG, JPG and more, with GUID-stable references that survive moves and renames.

Headless CLI

turian-cli compile builds your game without opening the GUI — the same pipeline your editor produces, ideal for CI.

Built on .NET 10

A single language from scripts to engine internals: C# on .NET 10, with a Vulkan 1.3 renderer and Guinevere immediate-mode UI.

脚本编写

组件就是 C# 类

继承 Component 后,编辑器就能识别它。公共字段会显示在 Inspector 中;生命周期方法只需按需实现。

  • 代码发现:编辑器编译真实的 C# 代码,并提供 .NET 诊断信息。
  • 类型化 Inspector 字段:自动显示 float、int、bool、向量以及对象或资产引用。
  • 熟悉的生命周期 —— awake、enable、start、update、disable、destroy。

阅读教程 →

Follower.cs — Assets/Scripts/
namespace Usercode;

public class Follower : Component
{
    /// Drag a GameObject from the Hierarchy onto this field.
    public NodeRef target = new();
    public float speed = 4f;

    public override void OnStart()
    {
        var node = target.Resolve();
        if (node is not null)
            Console.WriteLine($"following '{node.Name}'");
    }
}
从零开始到发布构建

编写。布置。发布。

基架搭建

使用 turian-cli new 创建带有初始场景的新项目。

脚本编写与场景布置

打开 Turian Studio,添加组件,连接场景,并在属性检查器中实时调整字段值。

构建与分享

turian-cli compile 编译代码并处理资产;export 生成自包含的可执行文件。

开源 · 敞开大门

加入社区

提出疑问、分享作品并帮助共同塑造引擎 —— 欢迎每一个人的到来。

准备好构建新项目了吗?

用 turian-cli 创建项目,再到 Studio 中打开,开始制作游戏。