Limen Framework 0.1 Help

TLimenTickable

Overview

TLimenTickable is a template class designed to encapsulate the logic for managing a tickable function. It uses Unreal Engine's FWorldDelegates::OnWorldTickEnd delegate to ensure that the tickable function is called at the end of each world tick. The class provides methods to start, stop, and check if it is currently ticking.

Properties

Type

Name

Access

Description

FTickFunctorType

Functor

Public

A lambda function that defines the task to be executed on each tick.

TTuple<TDecay<TArgs>...>

Args

Private

A tuple containing the arguments passed to the tickable function.

FDelegateHandle

Handle

Private

A delegate handle used to manage the registration of the tickable function with the world tick event.

mutable bool

bLazyIsTicking

Private

A mutable boolean flag that caches whether the tickable function is currently ticking.

Functions

Return Type

Signature

Description

void

Start()

Starts the tickable function if it is not already running.

void

Stop()

Stops the tickable function if it is currently running.

bool

IsTicking() const

Returns whether the tickable function is currently ticking.

TLimenTickable&

operator=(const FTickFunctorType& InFunctor)

Assigns a new tickable function and starts it if it was not already running.

Usage & Implementation Notes

  • The class uses Unreal Engine's FWorldDelegates::OnWorldTickEnd to ensure that the tickable function is called at the end of each world tick.

  • The tickable function can be assigned using the assignment operator, which will automatically start it if it was not already running.

  • The class ensures that the tickable function is stopped when the object is destroyed.

22 May 2026