Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
27 results for persist
UGameplayStatics::GetGameInstance. Persists across level loads.
Get Game InstanceUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoSETUP: Create Blueprint inheriting UGameInstanceSubsystem (or UWorldSubsystem for level-scoped). Override Initialize(Collection) to set up. Override Deinitialize to clean up. Add game variables here (Score, PlayTime, Settings). ACCESS FROM ANYWHERE: GetGameInstance → GetSubsystem(BP_GameSubsystem) → CastTo<BP_GameSubsystem> → access variables. WHY: Subsystems auto-create, auto-destroy, and don't need FindActor. Better than GameInstance for well-organized systems. UGameInstanceSubsystem persists across levels. UWorldSubsystem is recreated each level.
Spawn Sound at LocationUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoA class for persisting player progress to disk. Subclass USaveGame, add fields, then SaveGameToSlot / LoadGameFromSlot.
FlushPersistentDebugLinesUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoDoes Save Game ExistUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo ago0 = live forever.
Set Life SpanUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoExec output is 'Completed' (NOT 'then'). Does not block — execution continues after Delay node fires.
DelayUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoPattern: BP_Checkpoint with BoxTrigger, variable CheckpointID(int). OnBeginOverlap(Player) → DoOnce → CreateSaveGameObject(MySaveGame) → SET PlayerLocation, Health, Inventory, CheckpointID → SaveGameToSlot('AutoSave', 0). On death/respawn: LoadGameFromSlot('AutoSave') → Cast → TeleportTo(SavedLocation) → restore Health etc. Show 'Checkpoint Reached' UI briefly.
Cast ReturnValue to your SaveGame subclass (e.g. UBP_SaveGame) to set variables on it.
CreateSaveGameObjectUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo ago