Skip to content

WeakRef has no 'operator=' what makes class unusable. #1126

Description

@RonYanDaik

Godot version

4.1 dev

godot-cpp version

#1113

System information

Any

Issue description

C++ class WeakRef has no methods except get_ref() and seems no way to use it in c++.
Its missing functions from the engine:

void set_obj(Object *p_object);
void set_ref(const Ref<RefCounted> &p_ref);

Steps to reproduce

n/a

Minimal reproduction project

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions