component.isStopping()

The component.isStopping() function can be used to return whether the component is in a stopping state or not.

It will return true for stopping state, false for live.

It’s often used with to conditionally execute specific actions. For example, .

if component.isStopping() then -- execute actions that I want to occur when the component stops end

 

 

Â