Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.21 KB

Class specifiers.md

File metadata and controls

38 lines (28 loc) · 1.21 KB

2020-12-30_17:24:55

Class specifiers

Class specifiers are keywords that are added inside the parenthesis in UCLASS() macros. The are read by the Unreal Header Tool and are used to control the behavior and properties of the class.

  • Blueprintable: Allow creation of Blueprint subclasses of the C++ class.
  • BlueprintType: Allow creation of variables of this type in Blueprint classes.
  • NotBlueprintable: Do not allow creation of Blueprint subclasses of the C++ class.
  • ClassGroup: Used by the Group View in the Actor Browser. Not sure what the Actor Browser is.
  • Meta: To add editor-only metadata to the class. See below.

Example:

UCLASS(Blueprintable, ClassGroup = "My Classes")
class MYMODULE_APT AMyActor : public AActor
{
}

Class metadata specifiers

Metadata specifiers only exist in the editor, they are removed in the cooking process.

  • BlueprintSpawnableComponent - To make it possible to add instances of this ActorComponent to Blueprints and Actors in Unreal Editor.

Example:

UCLASS(Blueprintable, ClassGroup = "My Classes",
       Meta = (BlueprintSpawnableComponent))
class MYMODULE_APT AMyComponent : public UActorComponent
{
}

[[2020-03-09_21:34:05]] UCLASS