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

C# Export Hint NodeType and ResourceType HintString Cannot be displayed correctly #91644

Closed
ZerxZ opened this issue May 7, 2024 · 0 comments · Fixed by #91645
Closed

C# Export Hint NodeType and ResourceType HintString Cannot be displayed correctly #91644

ZerxZ opened this issue May 7, 2024 · 0 comments · Fixed by #91645

Comments

@ZerxZ
Copy link
Contributor

ZerxZ commented May 7, 2024

Tested versions

v4.2.2.stable.mono.official

System information

Windows 10.0.22000 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Laptop GPU (NVIDIA; 31.0.15.5123) - 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 Threads)

Issue description

public partial class CustomNode : Node
{
   // Only Node HintString
   [Export(PropertyHint.NodeType,     $"{nameof(Node2D)},{nameof(Node3D)}")] 
   public Node        TNode;
   // Only Resource HintString
   [Export(PropertyHint.ResourceType, nameof(Texture2D))]                    
   public Resource    TResource;
   // Work
   [Export(PropertyHint.NodeType,     $"{nameof(Node2D)},{nameof(Node3D)}")]
   public GodotObject GONode;
   // Work
   [Export(PropertyHint.ResourceType, nameof(Texture2D))]                   
   public GodotObject GOResource;
}

Steps to reproduce

HintAndHintString

Minimal reproduction project (MRP)

HintAndHintString.zip

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

Successfully merging a pull request may close this issue.

3 participants