Is it save to move all Structs to their own Struct file?

Hi,

my question is basically the thread title. During my scripting, a lot of Structs have accumulated and now I am thinking about moving them all to a Structs.cs file. I guess that a lot of you people already do this.

But … Is this save? Won’t this cause naming conflicts in the future, when such a generic name is used for a file?

If a struct is large, complex, and widely used (ie: Vector3), I might rather keep it in its own file.

If it’s simple and only used in one class, I’ll usually put it in the same file as that class.

Otherwise, I suppose you could group them by category.

Bottom line, anything that doesn’t cause name collisions will compile. Past that, the organization is pretty subjective and up to you.