godotengine / godotengine/godot

Resource in @export Dictionary is labelled object

Open
#96,402 2 comments 0 reactions 0 assignees View on GitHub
discussion topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Godot v4.3.stable

### System information

Godot v4.3.stable - Nobara Linux 40 (GNOME Edition) - Wayland - Vulkan (Forward+) - integrated Intel(R) Xe Graphics (TGL GT2) - 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 Threads)

### Issue description

This type label says Object instead of Resource.
All the options that appear when clicking object are Resources.
You cannot use an Object in an `@export var`, just Resources (and others).
![godotdictionaries](https://github.com/user-attachments/assets/2350455b-db33-4ead-bf57-4e366ff9e7ea)

### Steps to reproduce

Create a Node with a script containing
```gdscript
@export var d: Dictionary
```
Create and edit an entry.
A list of options (types) appears. Here is the 'Object' label.

### Minimal reproduction project (MRP)

[mrp.zip](https://github.com/user-attachments/files/16825833/mrp.zip)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Godot v4.3.stable using a Node script with `@export var d: Dictionary`, then inspect the Dictionary entry type picker shown in the editor. Done means the option currently labelled Object is labelled Resource, while the available Resource choices remain usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.