Skip to content

Implement Structs in GDScript#1152

Open
decryptedchaos wants to merge 19 commits intoRedot-Engine:devfrom
decryptedchaos:structs
Open

Implement Structs in GDScript#1152
decryptedchaos wants to merge 19 commits intoRedot-Engine:devfrom
decryptedchaos:structs

Conversation

@decryptedchaos
Copy link
Copy Markdown
Member

@decryptedchaos decryptedchaos commented Jan 9, 2026

This adds Structs to GDScript

Status


Functional POC

Tasks:

Refactoring this to fit Godot's COW model. It shouldn't be anymore heavy than the Variant based Refcounted instance, and solve the fundamental issue.

image

This will need extensive debug, testing and cleanup. but is now functional

Summary by CodeRabbit

  • New Features

    • Native GDScript struct support: declare fields/methods, inheritance, editor/analysis/compiler/VM/runtime integration, struct wrappers and copy-on-write instances, property listing, JSON/marshalling and bytecode support, and language-agnostic creation/inspection APIs.
  • Breaking Changes

    • Removed legacy object-serialization utilities: var_to_str_with_objects and str_to_var_with_objects.

✏️ Tip: You can customize this high-level summary in your review settings.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Open

Development

Successfully merging this pull request may close these issues.

2 participants