module::setLifetime
Sets the lifetime of an element in seconds.
Declaration
void module::setLifetime(float lifetime)Parameters
- lifetime:
The duration in seconds the element should remain active
Discussion
Use this function to control how long an element will exist before being automatically removed from the system.