UE4 Generator Attributes
Here’s the list of attributes that affect UE4 code generation.
Attribute |
Type |
Inheritance |
Target |
Description |
Default |
|---|---|---|---|---|---|
enabled |
bool |
scope |
module,
type
|
Enables code generation for
the module or type
|
|
igor_path |
string |
scope |
module |
Path to the Igor runtime
library
|
|
h_file |
string |
module |
Override generated h file name |
||
cpp_file |
string |
module |
Override generated cpp file name |
||
h_path |
string |
scope |
module |
Header output folder |
|
cpp_path |
string |
scope |
module |
Cpp output folder |
|
namespace |
string |
scope |
module,
type
|
C++ namespace
Nested namespaces should be
separated with
:: |
|
prefix |
string |
scope |
type |
Type name project prefix |
|
name |
string |
module,
type,
record field
enum field
|
Override generated name. |
||
base_type |
string |
record,
variant
|
Ancestor type for the struct
or class
|
||
alias |
string |
type |
Provide existing target type.
Do not generate type
definition
|
||
typedef |
string |
alias type |
Generate typedef declaration
for the alias type
|
|
|
ptr |
bool |
record |
Use
TSharedPtr to storevalues (e.g. record fields)
of this type.
|
|
|
interfaces |
bool |
scope |
module
interface
|
Generate abstract classes for
interfaces (not compatible
with ustructs)
|
|
uenum |
bool |
enum |
Define enum as |
|
|
ustruct |
bool |
record |
Define record as |
|
|
uclass |
bool |
record |
Define record as |
|
|
blueprint_type |
bool |
record
enum
|
BlueprintType specifierfor
USTRUCT, UCLASS orUENUM. |
|
|
uproperty |
bool |
scope |
record field |
Define record field as
UPROPERTY. |
|
h_include |
string |
module |
Include an extra header to
a generated h file. Multiple
attribute values can be set.
|
||
cpp_include |
string |
module |
Include an extra header to
a generated cpp file. Multiple
attribute values can be set.
|
||
log_category |
string |
scope |
module |
Log category for UE_LOG macros |
|
http.base_url |
string |
webservice |
Default HTTP client base url |
||
http.client.lazy |
bool |
scope |
webservice
webresource
|
Don’t process HTTP request
immediately but allow a user
to setup request first.
|
|
http.client.content_setup |
argsrequest |
scope |
webservice
webresource
|
|
|
http.client.path_setup |
argsrequest |
scope |
webservice
webresource
|
|
|
http.client.query_setup |
argsrequest |
scope |
webservice
webresource
|
|
|
http.client.header_setup |
argsrequest |
scope |
webservice
webresource
|
|
|
http.client.setup |
argsrequest |
web variable |
|
The following attributes enable generation of UE4 UPROPERTY specifiers.
They are supported for record fields and have scope inheritance.
Attribute |
Type |
UE4 UPROPERTY specifier |
|---|---|---|
blueprint_read_write |
bool |
BlueprintReadWrite |
blueprint_read_only |
bool |
BlueprintReadOnly |
edit_anywhere |
bool |
EditAnywhere |
edit_defaults_only |
bool |
EditDefaultsOnly |
visible_anywhere |
bool |
VisibleAnywhere |
visible_defaults_only |
bool |
VisibleDefaultsOnly |
category |
string |
Category |