Skip to main content

Keywords

The complete set of top-level and statement keywords TPScript understands.

Top-level declarations​

KeywordWhat it declaresExample
uclassAn actor/UObject subclassuclass AFoo : AActor meta: api=X_API
classHigh-level actorclass foo extends actor meta: api=X_API
ustructA USTRUCTustruct FStats (BlueprintType)
uenumA UENUMuenum EDir : uint8 (BlueprintType)
interfaceA UINTERFACEinterface IFoo (api=X_API, minimal)
declareA delegate typedeclare DynamicMulticast FFoo (OneParam T, N)
includeA header includeinclude "GameFramework/Actor.h"

Member declarations​

KeywordMeaning
propA UPROPERTY macro property (visible to reflection/BP)
fieldA plain C++ member (no UPROPERTY)
methodA plain C++ method (with body)
funcA UFUNCTION exposed to Blueprints (callable/implementable/event)
componentA subobject component (name: type or UType "Name")
ctorThe constructor body

Statement sugar (inside bodies)​

KeywordExpands to
print ...UE_LOG(LogTemp, Warning, ...)
get_component x: T from srcT* x = src->FindComponentByClass<T>()
cast x: T from srcT* x = Cast<T>(src)
spawn x: T from locGetWorld()->SpawnActor<T>(StaticClass, loc)
bind_event E to HandlerE.AddDynamic(this, &Cls::Handler)
declare DynamicMulticast ...DECLARE_DYNAMIC_MULTICAST_DELEGATE_*

Modifiers seen in signatures​

  • Method: public, protected, private, virtual, override, static, const, pure.
  • Class: implements I1, I2, meta: api=..., meta(...).
  • Property: EditAnywhere, EditDefaultsOnly, VisibleAnywhere, BlueprintReadWrite, BlueprintReadOnly, BlueprintAssignable, Replicated, ReplicatedUsing=..., category=..., default=..., clamp=[..], units="...", meta(...), Transient, Config.

See the dedicated Keywords → property pages for full tables.