API ReferenceScriptcomponentOnattachedScriptComponent.onAttached() method Invoked when the component is attached to a parent Signature: onAttached(): void; Returns: void