I read in the Unity documentation that you should avoid the System namespace to keep your final app size small.
Now I have created a custom editor and some classes in Unity, to be able to edit them I must use the System.Serializable attribute. Does this mean that I will not be using the whole System namespace… If so should I worry about it and can I avoid it somehow?
Code size highly depends on how many .NET assemblies are used. Unfortunately .NET namespaces do not strictly map to the assemblies. The “System.Serializable” attribute for example lives in mscorlib.dll, which is used always, so it won’t increase you code size much. You always can check this in MSDN : SerializableAttribute Class (System) | Microsoft Learn, which tells :