xenko icon indicating copy to clipboard operation
xenko copied to clipboard

Default namespace when adding script from Game Studio does not match project structure

Open dfkeenan opened this issue 8 years ago • 1 comments

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

dfkeenan avatar Sep 23 '17 02:09 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 

stefnotch avatar Mar 01 '18 19:03 stefnotch