VisualScriptFunctionState

Inherits: Reference < Object

A Visual Script node representing a function state.

Description

VisualScriptFunctionState is returned from VisualScriptYield and can be used to resume a paused function call.

Methods

void

connect_to_signal ( Object obj, String signals, Array args )

bool

is_valid ( ) const

Variant

resume ( Array args=null )


Method Descriptions

void connect_to_signal ( Object obj, String signals, Array args )

Connects this VisualScriptFunctionState to a signal in the given object to automatically resume when it's emitted.


bool is_valid ( ) const

Returns whether the function state is valid.


Variant resume ( Array args=null )

Resumes the function to run from the point it was yielded.