Skip to content

Generics missing for PackedScene::instance #585

Description

@aaronfranke

I have a Mob class and a PackedScene with the root node of type Mob. I would like to instance the scene like this:

Mob mob = mob_scene->instance<Mob>();

However, there are no generics for PackedScene::instance. These exist in C# in Godot 3.3 and later, but not GDNative C++. The solution would be to add this feature to the GDNative C++ bindings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis is an enhancement on the current functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions