Layer (class)

This class provides fields/functions for managing Layers in the current level. Accessing Layers only work after the code file is initiated and after onStart!

Instance functions
These fields and functions are part of Layer Objects and have to be called for that object. Trying to call them from the static Layer class will result in an error. Example (feel free to copy it into your lua file to see how it works):