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 cycle
Pattern: Variables TimeOfDay(float)=12.0, DayLengthMinutes(float)=10. Tick: TimeOfDay += (DeltaSeconds/DayLengthMinutes/60)*24 → FMod(TimeOfDay, 24) → MapRangeClamped(TimeOfDay, 0, 24, 0, 360) → MakeRotator(SunPitch, 0, 0) → SetActorRotation(SunLight). Update sky SunDirection and light color/intensity based on time.
string
Pattern: Variables RegenRate(float)=5.0, RegenDelay(float)=3.0, RegenTimerHandle. On damage received: ClearTimer(RegenTimerHandle) → SET timer(RegenDelay, RegenTick, looping=true). RegenTick function: Branch(Health < MaxHealth) → True: SET Health = FClamp(Health + RegenRate*DeltaSeconds, 0, MaxHealth). False: ClearTimer.
A graph of animation states connected by transitions. Each state plays a sequence/blend; transitions fire on rule conditions.
Dealing damage: Event → ApplyDamage(TargetActor, BaseDamage, InstigatorController, DamageCauser, DamageTypeClass). Receiving: EventAnyDamage → Damage output → Subtract_FloatFloat(CurrentHealth, Damage) → FClamp(Result, 0, MaxHealth) → SET CurrentHealth → Branch(CurrentHealth <= 0) → True: DestroyActor. Initialize CurrentHealth=MaxHealth in BeginPlay.
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.
A SceneComponent with simulate-physics enabled. Driven by forces, gravity, collisions instead of explicit transforms.
Call on the SkeletalMeshComponent. Get it via GetMesh() on Character. Returns montage length. Exec out is 'then'.
PlayMontageUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoFires when a physics collision happens. Use for impact effects, damage on contact.
UPrimitiveComponent method. Store result in variable and reuse. Create once in BeginPlay.
Create Dynamic Material InstanceUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago