Layer.addComponent

Adds a component to the layer.

class Layer
final
void
addComponent

Parameters

component Component

The component to add.

name string

The name of the component. This must be unique for the layer, otherwise an existing component will be replaced.

Meta