Type Function Library composer.* Return value various Revision Current Public Release (2017.3068) 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" )