connect(flags:_:)

    Connects the signal to the specified callback

    AnimationPlayer.swift:1115
    @discardableResult func connect(flags: Object.ConnectFlags = [], _ callback: @escaping (_ name: String) -> ()) -> Object

    Returns

    an object token that can be used to disconnect the object from the target on success, or the error produced by Godot.

    To disconnect, call the disconnect method, with the returned token on success

    • callback: the method to invoke when this signal is raised

    • flags: Optional, can be also added to configure the connection’s behavior (see ConnectFlags constants).

    Other members in extension

    Instance members