ResourceArena.isAlive

Check if the resource is still loaded in the area.

This will return true as long as the resource hasn't expired yet, even if it hasn't been loaded during this cycle. isAlive is intended for diagnostics and debugging, rather than practical usage. See isActive for the stricter variant that will not return true for unloaded resources.

struct ResourceArena(T)
const
bool
isAlive
(
int index
)

Parameters

index int

Index to check.

Return Value

Type: bool

True if the resource is alive, that is, hasn't expired, hasn't been unloaded, but also hasn't been loaded/used during this cycle.

Meta