Question regarding transition.to ...

When transition.to is used inside a module or function is there a “rule” when to use it without a local variable?

A difference between:

local doit=function()       transition.to (obj,{...}) end

and

local doit=function()       local dotrans=transition.to (obj,{...}) end

?

I wonder if I can use it like in the first function above without thinking about memory issues after scene changes.

transition.to returns a handle to the transition that can be later used to pause or cancel the transition. If you don’t assign it to a variable the handle is just thrown away and you don’t need to worry about it retaining memory.

Rob

That’s great news Rob! :slight_smile: Thx for the info and fast answer!

transition.to returns a handle to the transition that can be later used to pause or cancel the transition. If you don’t assign it to a variable the handle is just thrown away and you don’t need to worry about it retaining memory.

Rob

That’s great news Rob! :slight_smile: Thx for the info and fast answer!