The index of the layer to add the component to.
The component to add.
The name of the component. This must be unique for the layer, otherwise an existing component will be replaced.
Boolean determining whether the old component's memory should be cleaned or not. Only used if "NOVELATE_MANUALMEMORY" is enabled.
Adds a component to a layer.