Layer.getComponent

Gets a component from the layer. You msut cast to the original component type for it to be useful.

class Layer
final
getComponent
(
string name
)

Parameters

name string

The name of the component to get.

Return Value

Type: Component

The component if found, null otherwise.

Meta