qc.Node.getScript

Prototype

Parameters

Parameter Type Description
script string The className of the script.

Description

Returns the component if the node has one attached, null if it doesn't.

Sample

    node.getScript('qc.TweenPosition');