public void Write(AssetWriter writer) { Texture.Write(writer); if (HasNormalMap(writer.Version)) { NormalMap.Write(writer); } TileSize.Write(writer); if (HasTileOffset(writer.Version)) { TileOffset.Write(writer); } if (HasSpecularMetallic(writer.Version)) { SpecularMetallic.Write(writer); } if (HasSmoothness(writer.Version)) { writer.Write(Smoothness); } }