public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add(TextureName, Texture.ExportYAML(container)); node.Add(ScaleName, Scale.ExportYAML(container)); node.Add(OffsetName, Offset.ExportYAML(container)); return(node); }
public YAMLNode ExportYAML() { YAMLMappingNode node = new YAMLMappingNode(); node.Add("m_Texture", Texture.ExportYAML()); node.Add("m_Scale", Scale.ExportYAML()); node.Add("m_Offset", Offset.ExportYAML()); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add("m_Density", Density); node.Add("m_Material", Material.ExportYAML(container)); node.Add("m_IsTrigger", IsTrigger); node.Add("m_UsedByEffector", UsedByEffector); node.Add("m_UsedByComposite", UsedByComposite); node.Add("m_Offset", Offset.ExportYAML(container)); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add(DensityName, Density); node.Add(MaterialName, Material.ExportYAML(container)); node.Add(IsTriggerName, IsTrigger); node.Add(UsedByEffectorName, UsedByEffector); node.Add(UsedByCompositeName, UsedByComposite); node.Add(OffsetName, Offset.ExportYAML(container)); return(node); }