Coming from Unreal
A map from Unreal C++ gameplay concepts, macros and specifiers to their Mowo equivalents, for programmers who know UCLASS, UPROPERTY and UFUNCTION.
Mowo's gameplay layer is built to read like Unreal's: C++ classes reflected through a header tool, Visual Scripting classes that extend them, and the same framework classes. The names use M where Unreal uses U. This page maps what you already know.
Macros and types
| Unreal | Mowo |
|---|---|
UCLASS() / GENERATED_BODY() | MCLASS() / MGENERATED_BODY() |
UPROPERTY() / UFUNCTION() | MPROPERTY() / MFUNCTION() |
USTRUCT() / UENUM() / UINTERFACE() | MSTRUCT() / MENUM() / MINTERFACE() |
UObject, AActor, UActorComponent | MObject, AActor, MActorComponent |
TObjectPtr<T>, TSubclassOf<T>, TSoftObjectPtr<T> | the same names |
FName, FGameplayTag | the same names |
UWorld, UGameInstance | MWorld, MGameInstance |
AGameModeBase, APlayerController, APawn, ACharacter, AHUD | AGameMode, APlayerController, APawn, ACharacter, AHUD |
TArray, TMap, TSet | std::vector, std::map, std::set |
.generated.h as the last include | the same rule |
Specifiers
| Unreal | Mowo |
|---|---|
BlueprintCallable | every MFUNCTION is a node; ScriptHidden removes it |
BlueprintPure | a const function; ScriptPure forces it |
BlueprintImplementableEvent / BlueprintNativeEvent | ScriptEvent / ScriptNativeEvent |
BlueprintReadOnly / BlueprintReadWrite | ScriptReadOnly / ScriptReadWrite |
BlueprintProtected, BlueprintAuthorityOnly, BlueprintCosmetic | ScriptProtected, AuthorityOnly, Cosmetic |
BlueprintAssignable | ScriptAssignable |
NotBlueprintable | NotScriptable |
EditAnywhere, EditDefaultsOnly, EditInstanceOnly | the same |
VisibleAnywhere, VisibleDefaultsOnly, VisibleInstanceOnly | the same |
AdvancedDisplay, Instanced, NoClear, EditFixedSize, Interp | the same |
ExposeOnSpawn (a meta entry) | ExposeOnSpawn (a specifier) |
Config, GlobalConfig | the same |
Getter=, Setter= | the same |
CallInEditor | CallInEditor |
The full list, including what has no equivalent, is the specifier reference.
Differences that matter
- Exposure is opt-out. Everything reflected is available to graphs. Hide what you want private.
- Script events live on functions of the same name. A Visual Scripting class overrides
OnOpenedby declaring a function calledOnOpened; there is no separate override list. - Subsystems are discovered. Declare an
MCLASSderiving from a subsystem base and it exists; there is no registration. See Subsystems. - Two reflection dialects.
MCLASStypes useMPROPERTY; components and plain structs useMOWO_REFLECTED_NAMEDwith field markers such asMOWO_RANGE. They carry the same meanings. See Reflection. - Iteration. Edit a
.cppwhile the editor runs and Live Coding patches it; a header edit rebuilds the game module and swaps it on the next stop. See Live Coding.
Engine sources
This page describes behavior implemented in these files of the engine repository, checked against commit 55f27937c.
- Engine/Source/Core/Core/Api/Core/MObject.h
- Engine/Source/Core/Core/Api/Core/MSubsystem.h
- Engine/Source/Gameplay/Game/Api/Game/AActor.h
- Engine/Source/Gameplay/Game/Api/Game/MWorld.h