Type Function Library composer.* Return value various Revision 2019.3540 Keywords composer, scene, getVariable See also composer.setVariable()
Retrieves the value of a variable from within the Composer module that was previously set via composer.setVariable().
composer.getVariable( variableName )
-- Set the Composer variable "money" to 100 composer.setVariable( "money", 100 ) -- In another scene... local currentMoney = composer.getVariable( "money" )