UPROPERTY
Specifiers | Descriptions |
---|---|
Category | 指定屬性在藍(lán)圖編輯器中顯示的類別,用 | 隔開可以設(shè)置子類別. |
EditAnywhere | 此屬性可在原型和實例的屬性窗口中編輯. |
EditInstanceOnly | 此屬性只可在實例的屬性窗口中編輯,不可在原型的屬性窗口中編輯. |
EditDefaultsOnly | 此屬性只可在原型的屬性窗口中編輯,不可在實例的屬性窗口中編輯.與Visible* 說明符不兼容. |
VisibleAnywhere | 此屬性可在屬性窗口中可見,但是不能編輯. |
VisibleInstanceOnly | 此屬性可在實例的屬性窗口中可見,不可在原型的屬性窗口中可見,也不可以編輯. |
VisibleDefaultsOnly | 此屬性可在原型的屬性窗口中可見,不可在實例的屬性窗口中可見,也不可以編輯. |
BlueprintReadOnly | 此屬性可被藍(lán)圖讀取,但不可被藍(lán)圖更改. |
BlueprintReadWrite | 此屬性可被藍(lán)圖讀取,也可被藍(lán)圖寫入. |
Const | 常量. |
BlueprintCallable | 僅用于多播委托 .可從藍(lán)圖中調(diào)用. |
Transient | 臨時屬性,不應(yīng)被保存,加載時初始化為0.與SaveGame 說明符相反. |
SaveGame | 屬性應(yīng)該被SaveGame序列化到硬盤.與Transient 說明符相反. |
Template:Warning
Config
Property should be loaded/saved to ini file as permanent profile.
GlobalConfig
Same as above but load config from base class, not subclass.
Localized
Property should be loaded as localizable text. Implies ReadOnly.
DuplicateTransient
Property should always be reset to the default value during any type of duplication (copy/paste, binary duplication, etc.)
NonPIETransient
Property should always be reset to the default value during any type of duplication (copy/paste, binary duplication, etc.)
Ref
Value is copied out after function call. Only valid on function param declaration.
Template:Warning
Export
Object property can be exported with it's owner.
EditInline
Edit this object reference inline in the editor.
NoClear
Hide clear (and browse) button in the editor.
EditFixedSize
Indicates that elements of an array can be modified in Editor, but its size cannot be changed.
Template:Note
Template:Note
Replicated
Property is relevant to network replication.
ReplicatedUsing
Property will be configured for replication. The provided function is called only when the replicated property is received via replication.
Template:Example
Template:Note
RepRetry
Retry replication of this property if it fails to be fully sent (e.g. object references not yet available to serialize over the network)
NotReplicated
Skip replication (only for struct members and parameters in service request functions).
Interp
Interpolatable property for use with matinee. Always user-settable in the editor.
NonTransactional
Changes to this variable value will not be included in the editor's undo/redo history.
Instanced
Property is a component reference. Implies EditInline and Export.
BlueprintAssignable
MC Delegates only. Property should be exposed for assigning in blueprints.
Template:Example
SimpleDisplay
Properties appear visible by default in a details panel
AdvancedDisplay
Moves the property into the Advanced dropdown in the Details panel within the Editor.
Template:Note
AssetRegistrySearchable
The AssetRegistrySearchable keyword indicates that this property and it's value will be automatically added to the asset registry for any asset class instances containing this as a member variable. It is not legal to use on struct properties or parameters.
BlueprintAuthorityOnly
MC Delegates only. This delegate accepts (only in blueprint) only events with BlueprintAuthorityOnly.
TextExportTransient
Property shouldn't be exported to text format (e.g. copy/paste)
UFUNCTION
Specifiers | Descriptions |
---|---|
Category | 指定其在藍(lán)圖編輯工具中顯示時所處的類別位置. |
BlueprintImplementableEvent | 本函數(shù)需要在藍(lán)圖中進(jìn)行覆蓋重寫,不要在C++中實現(xiàn)它.自動生成的代碼中將包含一個替換程序(thunk) ,它會調(diào)用PocessEvent 以執(zhí)行藍(lán)圖中的重寫主體. |
BlueprintNativeEvent | 本函數(shù)需要在藍(lán)圖中進(jìn)行覆蓋重寫,但是在C+ +中也需要提供一個本地實現(xiàn).在C+ +中要提供一個[FunctionName]_Implementation 形式的本地實現(xiàn).自動生成的代碼中將包含一個替換程序(thunk) ,必要時它會調(diào)用[FunctionName]_Implementation 形式的本地實現(xiàn). |
BlueprintPure(純藍(lán)圖) | 本函數(shù)要滿足不產(chǎn)生副作用(只讀) 的約定,并且暗含BlueprintCallable 說明符.實現(xiàn)Get 功能的有用且簡潔的方式. |
BlueprintCallable | 可從藍(lán)圖與C+ +中調(diào)用此函數(shù),并會將向藍(lán)圖編輯器工具用戶公開. |
SealedEvent
This function is sealed and cannot be overridden in subclasses. It is only a valid keyword for events; declare other methods as static or FINAL to indicate that they are sealed.
Exec
This function is executable from the Console CLI.
Server
This function is replicated, and executed on servers. Provide a body named [FunctionName]_Implementation instead of [FunctionName]. The auto-generated code will include a thunk that calls the implementation method when necessary.
Client
This function is replicated, and executed on clients. Provide a body named [FunctionName]_Implementation instead of [FunctionName]. The auto-generated code will include a thunk that calls the implementation method when necessary.
NetMulticast
This function is both executed locally on the server and replicated to all clients, regardless of the Actor's NetOwner
Reliable
Replication of calls to this function should be done on a reliable channel. Only valid when used in conjunction with Client or Server
Unreliable
Replication of calls to this function can be done on an unreliable channel. Only valid when used in conjunction with Client or Server
BlueprintAuthorityOnly
This function will not execute from Blueprint code if running on something without network authority.
BlueprintCosmetic
This function is cosmetic-only and will not run on dedicated servers.
CustomThunk
The UnrealHeaderTool code generator will not produce a execFoo thunk for this function. It is up to the user to provide one.
Template:Example
WithValidation
This function must supply a _Validate implementation
ServiceRequest
This function is RPC service request
ServiceResponse
This function is RPC service response