godotengine / godotengine/godot-docs
GlobalClassAttribute in C#
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:**
4.2 Stable Mono
**Issue description:**
GlobalClassAttribute works only for scripts in res:// scope.
I have project scructure like this
- src
-- /GodotExtensions
--- /GodotExtensions.csproj (Sdk="Godot.NET.Sdk/4.2.0")
--- /MyNode.cs (extends Node / [GlobalClass])
-- /GodotProject
--- /project.godot
--- /GodotProject.sln
--- /GodotProject.csprog
MyNode not viewed in add node menu
It also means that I can't provide global classes through Nuget repository.
This limits CS development functionality.
Perhaps there are other restrictions related to the incompatibility of the Godot and Dotnet project structures.
I think this should be documented.
**URL to the documentation page:**
https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_global_classes.html
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.