Forum Discussion
brybott
9 years agoVisitor
It's not exactly a singleton, but I believe you can do what you want (create a function that is accessible to both the 'main' and scene graph threads) if you just include the .brs script file you want to access in the scene graph component's script tags. Even if the .brs script file resides in pkg:/source (where it can also be accessed via the 'main' thread).