====== Texture2D ====== ===== Undocumented Constructor ===== Texture2D has an undocumented constructor with an integer mipmap count, instead of just a bool for the whole mipchain, that is: ''new Texture2D(int width, int height, TextureFormat format, int numMips, bool isLinear)'' This way it is possible to create textures with a limited number of mipmaps, and it can be useful for large atlases to prevent leaking. According to [[https://github.com/Unity-Technologies/UnityCsReference|UnityCsReference]], the constructor first appeared in [[https://github.com/Unity-Technologies/UnityCsReference/blob/2019.2/Runtime/Export/Graphics/Texture.cs#L541|2019.2]] and is not available in [[https://github.com/Unity-Technologies/UnityCsReference/blob/2019.1/Runtime/Export/Graphics/Texture.cs|2019.1]], [[https://github.com/Unity-Technologies/UnityCsReference/blob/2018.4/Runtime/Export/Texture.cs|2018.4]] or any of the earlier versions.