Skip to content

Add example for exposing Rust types to GDScript, using derive macros and/or wrapper classes #605

Closed
@ghost

Description

This question is asked pretty frequently, so it's good to have something to point users to.

  • Exposing value types through FromVariant and ToVariant.
  • Exposing operations on those types, e.g. Eq, through helper methods on a auto-load script.
  • Exposing opaque types / types with behaviors through wrapper classes.
  • Factory auto-load to work around the constructor argument problem.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions