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

Method set_obj

core/object/ref_counted.cpp:127–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void WeakRef::set_obj(Object *p_object) {
128 ref = p_object ? p_object->get_instance_id() : ObjectID();
129}
130
131void WeakRef::set_ref(const Ref<RefCounted> &p_ref) {
132 ref = p_ref.is_valid() ? p_ref->get_instance_id() : ObjectID();

Callers 2

godotsharp_weakrefFunction · 0.80
weakrefMethod · 0.80

Calls 2

ObjectIDClass · 0.70
get_instance_idMethod · 0.45

Tested by

no test coverage detected