|
|
组件 | 版本要求 |
---|---|
虚幻引擎 | 5.0 - 5.5 |
.NET | 8.0+ |
平台 | Windows / macOS / Linux |
# 1. 克隆仓库
git clone https://github.com/crazytuzi/UnrealCSharp.git
# 2. 复制插件到项目
cp -r UnrealCSharp /path/to/your/project/Plugins/
# 3. 重新生成项目文件
<
8000
span class="pl-c"># 在UE项目根目录右键选择 "Generate Visual Studio project files"
using UnrealCSharp.CoreUObject;
[DynamicClass]
public class MyActor : AActor
{
protected override void BeginPlay()
{
base.BeginPlay();
Unreal.PrintString(GetWorld(), "Hello from C#!", duration: 5.0f);
}
}
💡 提示: 查看我们的详细文档了解更多示例
UnrealCSharp/
├── 📁 Script/ # C# 脚本核心
│ ├── UE/ # 虚幻引擎API绑定
│ ├── Dynamic/ # 动态类型系统
│ └── Library/ # 工具库
├── 📁 Source/ # C++ 插件源码
├── 📁 Template/ # 项目模板
└── 📁 Resources/ # 资源文件
平台 | 开发 | 打包发布 | 状态 |
---|---|---|---|
Windows | ✅ | ✅ | 完全支持 |
macOS | ✅ | ✅ | 完全支持 |
Linux | ✅ | ✅ | 完全支持 |
Android | ❌ | ✅ | 仅发布支持 |
iOS | ❌ | ✅ | 仅发布支持 |
感谢所有为项目做出贡献的开发者们!
⭐ 如果这个项目对您有帮助,请给我们一个 Star!
Made with ❤️ by the UnrealCSharp Team