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

Method _clear_connections

modules/gdscript/gdscript_function.cpp:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void GDScriptFunctionState::_clear_connections() {
262 List<Object::Connection> conns;
263 get_signals_connected_to_this(&conns);
264
265 for (Object::Connection &c : conns) {
266 c.signal.disconnect(c.callable);
267 }
268}
269
270void GDScriptFunctionState::_bind_methods() {
271 ClassDB::bind_method(D_METHOD("resume", "arg"), &GDScriptFunctionState::resume, DEFVAL(Variant()));

Callers 2

~GDScriptInstanceMethod · 0.80

Calls 1

disconnectMethod · 0.65

Tested by

no test coverage detected