godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.75k stars 21.12k forks source link

Subresources are missing Script field in inspector #49923

Open Flavelius opened 3 years ago

Flavelius commented 3 years ago

Godot version

3.3.2.stable.mono.official

System information

Windows 10

Issue description

When Resource types expose a Resource typed field, assigned, objects as sub-Resources (= non-externally linked) don't show their Script field in the inspector. grafik

Steps to reproduce

Create something that exposes a Resource typed field, assign a new Resource from the inspector, and see the Script field not being displayed for it.

Minimal reproduction project

No response

Calinou commented 3 years ago

This is likely due to how Object's Script property is exposed in a special way. For instance, its property is not exposed to the class reference, but its setter and getter methods are.

ibe-denaux commented 4 months ago

This is still the case for Godot 4.2.2. Is there a workaround or solution to this in the works?