Skip to content

Struct not showing in the inspector when exported. #1424

Description

@niokasgami

Tested versions

Test on latest redot beta using the non mono build

System information

Windows 11

Issue description

Expected behavior

When exporting a struct using:

@export var something: MyStruct = MyStruct.new()

the struct should be exposed in the Inspector, allowing its properties to be edited directly.

Actual behavior

The struct can be exported without producing any errors or warnings. However, when the script is attached to a Node, the exported struct does not appear in the Inspector, and none of its properties are displayed or editable.

As shown in the attached screenshot, the exported property is missing from the Inspector entirely.

Example

@export var something: MyStruct = MyStruct.new()

The export is accepted without errors, but something does not appear in the Inspector.

Image

Steps to reproduce

  • create project
  • create a new script and add a simple struct and export it
  • attach it to a node

Minimal reproduction project (MRP)

just create a new project using the latest beta and attach a script.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions