-
Notifications
You must be signed in to change notification settings - Fork 351
USTRUCT and UCLASS
Nako Sung edited this page Nov 25, 2015
·
5 revisions
You can declare USTRUCT
and UCLASS
while your javascript is running.
// NOTE: Struct flag is *required* for 'USTRUCT'.
class YourStructName /* Struct+StructFlag+StructFlag+... */ extends BaseStruct {
properties() {
property-declarations
}
}
class YourClassName /* ClassFlag+ClassFlag+... */ extends ParentClass {
ctor() {
// initialization
// component setup
}
properties() {
property-declarations
}
YourUFunctionName(arg/*PropertyFlag+...*/) /*FunctionFlag+...*/ {
}
YourPureJavascriptFunctionName(arg,...) {
}
}
These classes should be transformed into corresponding USTRUCT
and UCLASS
by calling require('uclass')()(global, source-class)
.
StructFlag | Description |
---|---|
Atomic | |
Immutable |
ClassFlag | Description |
---|---|
Abstract | |
DefaultConfig | |
Transient | |
AdvancedDisplay | |
NotPlaceable | |
PerObjectConfig | |
EditInlineNew | |
CollapseCategories | |
Const | |
DefaultToInstanced | |
Hidden | |
HideDropDown | |
BlueprintType | |
BlueprintSpawnableComponent |