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.
20 results for singleton
Pure node. For GameInstance subsystems: GetGameInstance → GetSubsystem. For World subsystems: GetWorld → GetSubsystem. Subsystems are auto-instanced singletons — great for organizing game systems.
GetSubsystemUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Put in GameInstance for persistence. Variables MusicVolume(float)=1.0, SFXVolume(float)=1.0, CurrentMusic(AudioComponent). PlayMusic: IsValid(CurrentMusic) → Stop → SpawnSound2D(MusicAsset, MusicVolume) → store ref. PlaySFX: PlaySound2D(SFXAsset, SFXVolume). SetMusicVolume: SetVolumeMultiplier(CurrentMusic, NewVol). Save volumes to SaveGame.
A live, runtime object of a class. Properties on an instance can differ from defaults set in the class.
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 2mo agoK2Node_CreateWidget. Class is the Widget Blueprint class reference.
Create WidgetUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPure node. Ideal for storing data that persists across level loads.
GetGameInstanceUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoAlways pass a valid PlayerController as OwningPlayer. Cast the ReturnValue to your specific widget class.
CreateWidgetUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoA blueprint or C++ type that can be instantiated. Each spawned Actor or component is an instance of a class.
For non-Actor objects (UObjects). Actors must use SpawnActorFromClass instead. Outer is usually 'self' or GetTransientPackage().
NewObjectUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoMust call this before SetScalarParameterValue/SetVectorParameterValue. Store the result in a variable for reuse.
CreateDynamicMaterialInstanceUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago