AcTools.Kn5File.Kn5.ExportCollada_Material C# (CSharp) Method

ExportCollada_Material() private method

private ExportCollada_Material ( XmlWriter xml, Kn5Material material ) : void
xml XmlWriter
material Kn5Material
return void
        private void ExportCollada_Material(XmlWriter xml, Kn5Material material) {
            xml.WriteStartElement("material");
            xml.WriteAttributeStringSafe("id", $"{material.Name}-material");
            xml.WriteAttributeStringSafe("name", material.Name);
            
            xml.WriteStartElement("instance_effect");
            xml.WriteAttributeStringSafe("url", $"#{material.Name}-effect");
            xml.WriteEndElement();
            
            xml.WriteEndElement();
        }