-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hello!
I discovered where Autoload attribute is used the source generator creates a class with the same name but in different namespace.
The documentation is explicit about it but I don't get why that would be the intended behavior.
Given:
namespace Foo;
[Autoload]
public static partial class Bar;The following code is generated:
using System;
using System.ComponentModel;
namespace Godot;
static partial class Bar
{
private static Node root = (Engine.GetMainLoop() as SceneTree)?.Root;
}Expected:
using System;
using System.ComponentModel;
namespace Foo;
static partial class Bar
{
private static Node root = (Engine.GetMainLoop() as SceneTree)?.Root;
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request