VisualScript

Inherits: Script < Resource < Reference < Object

Category: Core

Brief Description

Member Functions

void add_custom_signal ( String name )
void add_function ( String name )
void add_node ( String func, int id, VisualScriptNode node, Vector2 pos=null )
void add_variable ( String name, Variant default_value=null, bool export=null )
void custom_signal_add_argument ( String name, int type, String argname, int index=null )
int custom_signal_get_argument_count ( String name ) const
String custom_signal_get_argument_name ( String name, int argidx ) const
int custom_signal_get_argument_type ( String name, int argidx ) const
void custom_signal_remove_argument ( String name, int argidx )
void custom_signal_set_argument_name ( String name, int argidx, String argname )
void custom_signal_set_argument_type ( String name, int argidx, int type )
void custom_signal_swap_argument ( String name, int argidx, int withidx )
void data_connect ( String func, int from_node, int from_port, int to_node, int to_port )
void data_disconnect ( String func, int from_node, int from_port, int to_node, int to_port )
int get_function_node_id ( String name ) const
Vector2 get_function_scroll ( String name ) const
VisualScriptNode get_node ( String func, int id ) const
Vector2 get_node_pos ( String func, int id ) const
Variant get_variable_default_value ( String name ) const
bool get_variable_export ( String name ) const
Dictionary get_variable_info ( String name ) const
bool has_custom_signal ( String name ) const
bool has_data_connection ( String func, int from_node, int from_port, int to_node, int to_port ) const
bool has_function ( String name ) const
bool has_node ( String func, int id ) const
bool has_sequence_connection ( String func, int from_node, int from_output, int to_node ) const
bool has_variable ( String name ) const
void remove_custom_signal ( String name )
void remove_function ( String name )
void remove_node ( String func, int id )
void remove_variable ( String name )
void rename_custom_signal ( String name, String new_name )
void rename_function ( String name, String new_name )
void rename_variable ( String name, String new_name )
void sequence_connect ( String func, int from_node, int from_output, int to_node )
void sequence_disconnect ( String func, int from_node, int from_output, int to_node )
void set_function_scroll ( String name, Vector2 ofs )
void set_instance_base_type ( String type )
void set_node_pos ( String func, int id, Vector2 pos )
void set_variable_default_value ( String name, Variant value )
void set_variable_export ( String name, bool enable )
void set_variable_info ( String name, Dictionary value )

Signals

  • node_ports_changed ( String function, int id )

Member Variables

Member Function Description

  • void add_custom_signal ( String name )
  • void add_function ( String name )
  • void custom_signal_add_argument ( String name, int type, String argname, int index=null )
  • int custom_signal_get_argument_count ( String name ) const
  • int custom_signal_get_argument_type ( String name, int argidx ) const
  • void custom_signal_remove_argument ( String name, int argidx )
  • void custom_signal_set_argument_name ( String name, int argidx, String argname )
  • void custom_signal_set_argument_type ( String name, int argidx, int type )
  • void custom_signal_swap_argument ( String name, int argidx, int withidx )
  • void data_connect ( String func, int from_node, int from_port, int to_node, int to_port )
  • void data_disconnect ( String func, int from_node, int from_port, int to_node, int to_port )
  • int get_function_node_id ( String name ) const
  • bool has_sequence_connection ( String func, int from_node, int from_output, int to_node ) const
  • void remove_custom_signal ( String name )
  • void remove_function ( String name )
  • void remove_variable ( String name )
  • void rename_custom_signal ( String name, String new_name )
  • void sequence_connect ( String func, int from_node, int from_output, int to_node )
  • void sequence_disconnect ( String func, int from_node, int from_output, int to_node )
  • void set_instance_base_type ( String type )
  • void set_variable_export ( String name, bool enable )