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

Method set_ref

core/object/ref_counted.cpp:131–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void WeakRef::set_ref(const Ref<RefCounted> &p_ref) {
132 ref = p_ref.is_valid() ? p_ref->get_instance_id() : ObjectID();
133}
134
135void WeakRef::_bind_methods() {
136 ClassDB::bind_method(D_METHOD("get_ref"), &WeakRef::get_ref);

Callers 2

godotsharp_weakrefFunction · 0.80
weakrefMethod · 0.80

Calls 3

ObjectIDClass · 0.70
is_validMethod · 0.45
get_instance_idMethod · 0.45

Tested by

no test coverage detected