xenko
xenko copied to clipboard
Namespace convention not followed and related bug
When creating a script within Game Studio, the naming convention for Namespaces in C# is not followed properly. instead, Game Studio will ignore the solution name and only use the name of the folder the script is in.
the accepted way namespaces are referenced in a file is as followed
<SolutionName>.<SubFolder>.<SubFolder> etc etc
on the same note, if I update the namespace directly from Visual Studio , it causes two issues:
- if the script is already referenced, the reference will be lose.
- attempting to attach the script to an asset will cause Game Studio to crash unless you do a full rebuild.
I think this is a duplicate of the issue #626 that I raised.