The data used to initialize the layer
The container in which the layer is used
Return an array containing the coordinates of the point passed as parameter in layer local coordinates (as opposed to the parent coordinates).
All transformations (scale, rotation) are supported.
The X position of the point, in parent coordinates.
The Y position of the point, in parent coordinates.
Array that will be updated with the result
Return an array containing the coordinates of the point passed as parameter in parent coordinate coordinates (as opposed to the layer local coordinates).
All transformations (scale, rotation) are supported.
The X position of the point, in layer coordinates.
The Y position of the point, in layer coordinates.
Array that will be updated with the result (x and y position of the point in parent coordinates).
Convert a point from the canvas coordinates (for example, the mouse position) to the container coordinates.
The x position, in canvas coordinates.
The y position, in canvas coordinates.
The camera number. Currently ignored.
The point instance that is used to return the result.
Convert a point from the container coordinates (for example, an object position) to the canvas coordinates.
The x position, in container coordinates.
The y position, in container coordinates.
The camera number. Currently ignored.
The point instance that is used to return the result.
Return the time elapsed since the last frame, in milliseconds, for objects on the layer.
Optional
instanceContainer: RuntimeInstanceContainerThe instance container the layer belongs to (deprecated - can be omitted).
Returns the scene the layer belongs to directly or indirectly
the scene the layer belongs to directly or indirectly
Called at each frame, after events are run and before rendering.
Optional
instanceContainer: RuntimeInstanceContainer
Represents a layer of a custom object. It doesn't allow to move any camera because it doesn't make sense inside an object.