|
属性声明
UProperty变量通过标准C++语法及额外的描述符号进行声明,描述符号包括变量修饰符以及放置于声明上的元数据。
UPROPERTY([specifier, specifier, ...], [meta(key=value, key=value, ...)])Type VariableName;
属性修饰符
在声明属性时,声明上可添加修饰符以控制引擎和编辑器的不同方面的属性表现。
AdvancedDisplay
AssetRegistrySearchable
BlueprintAssignable
BlueprintCallable
BlueprintReadOnly
BlueprintReadWrite
Category
Config
Const
DuplicateTransient
EditAnywhere
EditDefaultsOnly
EditFixedSize
EditInline
EditInstanceOnly
Export
GlobalConfig
Instanced
Interp
Localized
Native
NoClear
NoExport
NonTransactional
Ref
Replicated
ReplicatedUsing
RepRetry
SaveGame
SerializeText
SimpleDisplay
Transient
VisibleAnywhere
VisibleDefaultsOnly
VisibleInstanceOnly
|
|