Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported resources in inspector not finding superclass property descriptions on hover #91267

Open
basilicon opened this issue Apr 28, 2024 · 0 comments

Comments

@basilicon
Copy link

Tested versions

  • Tested in 4.2.1, 4.2.2, 4.3-dev5

System information

Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5123) - 13th Gen Intel(R) Core(TM) i7-13700KF (24 Threads)

Issue description

Properties in the inspector should always provide a description on hover, even for inherited properties. This should also apply to exported resources instantiated in-editor, but for inherited properties it instead displays "No description available."

image
image
image

In the screenshots above, I am setting CollisionShape3D's exported property Shape to a new SphereShape3D. Hovering over the "Radius" property correctly displays SphereShape3D's description of the radius property. However, hovering over the property "Custom Solver Bias" displays "No description available." Note that if you save the resource, then hover over its inherited properties in the .tres inspector, the correct description is displayed.

The intended behavior should be that for inherited properties, documentation from the superclass is loaded.

Steps to reproduce

  1. In the inspector, find any instance in a scene with an exported resource that has exported properties and has subclasses. For instance, CollisionShape3D has an exported property Shape which is a Shape3D (a Resource with various shape subclasses).
  2. Create a new resource of any subclass.
  3. Click on the new resource in inspector to display its properties, then hover over any inherited property. If you are following the example from step 1, hover over the "Custom Solver Bias" or "Margin" properties.

Note that this should apply to most superclass resources. I first found it with SphereShape3D but also with CapsuleMesh and CameraAttributesPractical, just inside my own project.

Minimal reproduction project (MRP)

N/A

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

No branches or pull requests

2 participants