r/Unity3D•
TastyBacon007

How to prevent visual studio from auto-adding folder structure to namespacd

Question

Title: I have the namespace set in Unity but then when creating a file in Visual Studio it auto-adds the file structure after

Unity I have set to TestGame namespace

Visual studio when making new scripts puts like Testgame/scripts/movement namespace. I would rather have no namespace or just my Testgame namespace

Posted Sep 1, 2026, 4:40 PM UTC

13
Loading comments…