MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_node_position

Method get_node_position

scene/resources/visual_shader.cpp:1008–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006}
1007
1008Vector2 VisualShader::get_node_position(Type p_type, int p_id) const {
1009 ERR_FAIL_INDEX_V(p_type, TYPE_MAX, Vector2());
1010 const Graph *g = &graph[p_type];
1011 ERR_FAIL_COND_V(!g->nodes.has(p_id), Vector2());
1012 return g->nodes[p_id].position;
1013}
1014
1015Ref<VisualShaderNode> VisualShader::get_node(Type p_type, int p_id) const {
1016 ERR_FAIL_INDEX_V(p_type, TYPE_MAX, Ref<VisualShaderNode>());

Callers 10

add_nodeMethod · 0.45
_delete_nodesMethod · 0.45
_dup_copy_nodesMethod · 0.45
update_graphMethod · 0.45
_delete_node_requestMethod · 0.45
_state_machine_drawMethod · 0.45
_erase_selectedMethod · 0.45

Calls 2

Vector2Function · 0.50
hasMethod · 0.45

Tested by

no test coverage detected