参考《Properties》
概要
UPROPERTY的作用类似于Unity中C#的特性[SerializeField]或者Godot中的export。目的就是通过反射把属性暴露在蓝图或实例的细节面板。
属性说明符(Property Specifiers)
| 属性说明符 | 作用 | 说明 |
|---|---|---|
VisibleAnywhere | 可见但不可编辑 | |
EditAnywhere | 可编辑 | |
BlueprintReadOnly | 在蓝图中只读 | |
BlueprintReadWrite | 在蓝图中可读写 | |
Transient | 临时属性,无法保存 | |
Category="TopCategory|SubCategory|..." | 指定在蓝图编辑工具中的显示的类别 |
