项目地址:crazytuzi/UnrealCSharp: UnrealCSharp, based on .NET 10 (Mono), is a C# programming plugin for UE.

动态类

  • 声明变量

    声明的变量要被子类能调用,需要如下代码样式

    [UProperty]
    public int Int32Value { get; set; }
    

    继承类无法获取,需要添加类似于C++的变量修饰符,继承类才可访问

    [UProperty]
    [BlueprintReadWrite]  
    public int Int32Value { get; set; }