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 clock
string
K2_SetTimer. Prefer SetTimerByEvent for type safety.
Set Timer by Function NameUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoGet Time SecondsUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: 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.
K2_SetTimerDelegate. Safer than FunctionName version. Create delegate from custom event.
Set Timer by EventUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSetTimerByFunctionNameUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: BeginPlay → K2_SetTimer(Self, 'MyFunction', 2.0, true) → store TimerHandle. Stop: ClearAndInvalidateTimerByHandle(TimerHandle). Prefer SetTimerByEvent over FunctionName for type safety. Delay node is simpler for one-shot but only works in Event Graph.
Pattern: Variables StartLocation(Vector), EndLocation(Vector). BeginPlay: SET StartLocation=GetActorLocation. Timeline MoveTimeline(Alpha 0→1 over Duration). Trigger overlap/button press → Play Timeline. Timeline Update: VLerp(StartLocation, EndLocation, Alpha) → SetActorLocation(Self, Result, bSweep=true). Finished: Delay → Reverse Timeline.
Schedules a function to run after a delay or on a repeating interval. Cleaner than Delay for repeating work.
UGameplayStatics. 1.0=normal, 0.5=half speed, 2.0=double speed. Minimum 0.0001.
Set Global Time DilationUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago