Skip to content

Script methods are not virtual #820

@derkork

Description

@derkork

I'm currently looking at compiling the Visual Scripting support as a GDExtension module using godot-cpp. However all methods in the generated Script class are not marked as virtual making it impossible to have a custom Script class in a GDExtension. They are already marked as virtual: false in the extension_api.json that is used for the code generator. From a look into the generation of extension_api.json i figure this is because Script is marked as "core" method and is therefore never exported as virtual.

Is this something that could be adressed or are custom derived Script classes not a thing for GDExtensions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    archivedtopic:gdextensionThis relates to the new Godot 4 extension implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions