xenko
xenko copied to clipboard
Default namespace when adding script from Game Studio does not match project structure
Hi,
Normally when you add a type to a project the namespace used is "<Assembly Root Namespace>.<Dot Separated File Path>". For example if you add a script to the "MyAwesomeGame.Game" project under the folder "<Project Root>/Scripts/Managers" the namespace would default to "MyAwesomeGame.Game.Scripts.Managers" not "Managers" as it currently does.
Could we get this changed?
Cheers, dfkeenan
@Kryptos-FR I also have this issue.
For example, when creating a new script from the Game Studio, the namespace is as follows:
namespace Gun
However, when I create an equivalent script in Visual Studio, the automatically generated namespace is:
namespace TimeNexus.Gun