Keywords
The complete set of top-level and statement keywords TPScript understands.
Top-level declarations
| Keyword | What it declares | Example |
|---|---|---|
uclass | An actor/UObject subclass | uclass AFoo : AActor meta: api=X_API |
class | High-level actor | class foo extends actor meta: api=X_API |
ustruct | A USTRUCT | ustruct FStats (BlueprintType) |
uenum | A UENUM | uenum EDir : uint8 (BlueprintType) |
interface | A UINTERFACE | interface IFoo (api=X_API, minimal) |
declare | A delegate type | declare DynamicMulticast FFoo (OneParam T, N) |
include | A header include | include "GameFramework/Actor.h" |
Member declarations
| Keyword | Meaning |
|---|---|
prop | A UPROPERTY macro property (visible to reflection/BP) |
field | A plain C++ member (no UPROPERTY) |
method | A plain C++ method (with body) |
func | A UFUNCTION exposed to Blueprints (callable/implementable/event) |
component | A subobject component (name: type or UType "Name") |
ctor | The constructor body |
Statement sugar (inside bodies)
| Keyword | Expands to |
|---|---|
print ... | UE_LOG(LogTemp, Warning, ...) |
get_component x: T from src | T* x = src->FindComponentByClass<T>() |
cast x: T from src | T* x = Cast<T>(src) |
spawn x: T from loc | GetWorld()->SpawnActor<T>(StaticClass, loc) |
bind_event E to Handler | E.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.