You can add Struct Specifiers to the struct definition to control how it behaves with various aspects of the Engine and Editor.
Struct Specifier |
Effect |
---|---|
|
Indicates that this struct should always be serialized as a single unit. No autogenerated code will be created for this class; the header is only provided to parse metadata from. |
|
Exposes this struct as a type that can be used for variables in Blueprints. |
|
Immutable is only legal in Object.h and is being phased out, do not use on new structs!. |
|
No autogenerated code will be created for this class; the header is only provided for parsing metadata. |
Metadata Specifiers
When declaring Classes, interfaces, structs, enums, enum values, functions, or properties, you can add Metadata Specifiers to control how they behave with various aspects of the engine and the editor. Each type of data structure or member has its own list of Metadata Specifiers.
Classes can use the following Metatag Specifiers:
Class Meta Tag |
Effect |
---|---|
|
If present, the component Class can be spawned by a Blueprint. |
|
Only valid on Blueprint function libraries. This specifier marks the functions in this class as callable on non-game threads in animation Blueprints. |
|
Used for Actor and component Classes. If the native Class cannot tick, Blueprint-generated Classes based this Actor or component can never tick, even if |
|
Used for Actor and component Classes. If the native Class cannot tick, Blueprint-generated Classes based this Actor or component can have the |
|
For behavior tree nodes, indicates that the Class is deprecated and will display a warning when compiled. |
|
If the class is deprecated, this message will be added to the standard deprecation warning when trying to compile a Blueprint that uses it. |
|
The name of this node in a Blueprint will be replaced with the value provided here, instead of the code-generated name. |
|
Do not spawn an Object of the Class using Generic Create Object node in Blueprint. This specifier makes sense only for Bluprint-type classes that are neither Actors nor ActorComponents. |
|
Expose a proxy Object of this Class in Async Task nodes. |
|
Used to make the first subclass of a Class ignore all inherited |
|
States that this Class is (or is not) an acceptable base Class for creating Blueprints, similar to the |
|
List of Blueprint events that are not allowed to be overridden. |
|
Lists Interfaces that are not compatible with the Class. |
|
Used by Blueprint function library classes to restrict usage to the classes named in the list. |
|
A short tooltip that is used in some contexts where the full tooltip might be overwhelming, such as the Parent Class Picker dialog. |
|
Indicates that Blueprint nodes placed in graphs owned by this Class must show their World context pins, even if they are normally hidden, because Objects of this Class cannot be used as World context. |
|
Indicates the Class uses hierarchical data. Used to instantiate hierarchical editing features in Details panels. |
|
Overrides the automatically generated tooltip from code comments. |