protected override YAMLMappingNode ExportYAMLRoot() { YAMLMappingNode node = base.ExportYAMLRoot(); if (IsReadScript) { node.Add("m_Script", Script); node.Add("m_DefaultReferences", DefaultReferences.ExportYAML()); node.Add("m_Icon", Icon.ExportYAML()); } node.Add("m_ExecutionOrder", ExecutionOrder); node.Add("m_ClassName", ClassName); node.Add("m_Namespace", Namespace); node.Add("m_AssemblyName", AssemblyName); node.Add("m_IsEditorScript", IsEditorScript); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); if (HasDefaultReferences(container.ExportVersion)) { node.Add(DefaultReferencesName, DefaultReferences.ExportYAML(container)); } if (HasExecutionOrder(container.ExportVersion)) { node.Add(ExecutionOrderName, ExecutionOrder); node.Add(IconName, Icon.ExportYAML(container)); } PostExportYAML(container, node); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { #warning TODO: values acording to read version (current 2017.3.0f3) YAMLMappingNode node = base.ExportYAMLRoot(container); if (IsReadScript(container.Flags)) { node.Add("m_Script", Script); node.Add("m_DefaultReferences", DefaultReferences.ExportYAML(container)); node.Add("m_Icon", Icon.ExportYAML(container)); } node.Add("m_ExecutionOrder", ExecutionOrder); node.Add("m_ClassName", ClassName); node.Add("m_Namespace", IsReadNamespace(container.Version) ? Namespace : string.Empty); node.Add("m_AssemblyName", AssemblyNameOrigin); node.Add("m_IsEditorScript", IsEditorScript); return(node); }