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);
}
}
为制作游戏而建的编辑器
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。
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 开发
Turian 由我独立开发。您的支持帮助我继续开发,并保持引擎免费、开放。