Godot Version
4.5 Stable
Question
Hello!
When I add the [GlobalClass] attribute to a class that inherits from the HttpRequest node, I haven’t been able to find it in the “Create New Node” dialog window. I haven’t been able to reproduce this issue with any other class (Tested with Node, Node3D, Rigidbody3D, Control). I tried enforcing the Godot namespace by prefixing “Godot.” to HttpRequest. I’ve triple-checked my file naming and even tried different file names in case of something weird there. I am clicking the build button in Godot after each file change. Unsure if it happens with any other class types yet.
using Godot;
using System;
[GlobalClass]
public partial class HttpRequestModified : Godot.HttpRequest
{
}
Repro Steps:
- New Project (.net)
- Create new C# Script via the Godot FileSystem New Script dialog, choosing “HttpRequest” as the inheriting class
- Append [GlobalClass] attribute before
public partial classetc - Save file
- Build Project via Godot Engine
- Open the Add New Node dialog by attempting to add a new node to the scene tree
- Search by class name (i.e. HttpRequestModified)
- Notice your modified HttpRequest does not appear in the new node tree as an option.
