Layer.addComponent

Adds a component to the layer.

class Layer
final
void
addComponent
(,
string name
,
bool cleanOldComponent = true
)

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.

cleanOldComponent bool

Boolean determining whether the old component's memory should be cleaned or not. Only used if "NOVELATE_MANUALMEMORY" is enabled.

Meta