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.
21 results for pool
Variables in pool manager (GameMode or Subsystem): Pool (Array<Actor>), PoolClass (TSubclassOf<Actor>). Init: Loop N times → SpawnActorFromClass → SetActorHiddenInGame(true) → SetActorEnableCollision(false) → SetActorTickEnabled(false) → Array Add to Pool. GetFromPool: ForEachLoop(Pool) → GetActorHiddenInGame → Branch(true) → SetActorHiddenInGame(false) → SetActorEnableCollision(true) → SetActorTickEnabled(true) → SetActorLocationAndRotation → Return actor. If none available: SpawnActorFromClass. ReturnToPool: SetActorHiddenInGame(true) → SetActorEnableCollision(false) → SetActorTickEnabled(false) → SetActorLocation(far away or (0,0,-9999)).
Pattern: PoolManager with Array<AActor*> AvailablePool. Init: loop SpawnActor N times → SetActorHiddenInGame(true) → SetActorEnableCollision(false) → Array_Add to pool. GetFromPool: Array_Length > 0 → remove last → SetHidden(false) → SetCollision(true) → SetActorLocation → return. ReturnToPool: SetHidden(true) → SetCollision(false) → Array_Add back.
string
Pattern: Variables bIsSprinting(bool), Stamina(float)=100, MaxStamina(float)=100, SprintSpeed(float)=1200, WalkSpeed(float)=600, DrainRate(float)=20, RecoverRate(float)=10. Sprint pressed: bIsSprinting=true → SetMaxWalkSpeed(SprintSpeed). Released: bIsSprinting=false → SetMaxWalkSpeed(WalkSpeed). Tick: Branch(bIsSprinting) → Stamina -= DrainRate*DT. Else: Stamina += RecoverRate*DT. Clamp(0, Max). If Stamina<=0 → force stop sprint.
Random Float in RangeUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoRandomFloatInRangeUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUNiagaraFunctionLibrary::SpawnSystemAtLocation. bAutoDestroy=true for fire-and-forget. Use SpawnSystemAttached to attach to a component.
SpawnSystemAtLocationUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoLess_FloatFloatUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Variables CurrentWave(int)=0, EnemiesAlive(int)=0, EnemiesPerWave(Array<int>). StartWave: CurrentWave++ → SET EnemiesAlive=EnemiesPerWave[CurrentWave]. Timer looping: Branch(SpawnedThisWave < EnemiesPerWave[CurrentWave]) → SpawnActor(EnemyClass, RandomSpawnPoint) → SpawnedThisWave++. OnEnemyDeath: EnemiesAlive-- → Branch(EnemiesAlive <= 0) → StartNextWave or Victory.
Pattern: Pickup actor with SphereCollision(overlap), StaticMesh visual. OnComponentBeginOverlap → CastTo PlayerCharacter → Success: call AddScore/AddItem interface on player → PlaySoundAtLocation → SpawnEmitterAtLocation → DestroyActor(self). Set collision to OverlapOnlyPawn for performance.