private static string GetTagString(IExportContainer container, GameObject origin) { if (container.Layout.GameObject.HasTagString) { return(origin.TagString); } return(container.TagIDToName(origin.Tag)); }
private string GetTagString(IExportContainer container) { #if UNIVERSAL if (!HasTag(container.Flags) && !HasIsActiveFirst(container.Version)) { return(TagString); } #endif return(container.TagIDToName(Tag)); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("m_Component", Components.ExportYAML(container)); node.Add("m_Layer", Layer); node.Add("m_Name", Name); node.Add("m_TagString", container.TagIDToName(Tag)); node.Add("m_Icon", default(PPtr <Object>).ExportYAML(container)); node.Add("m_NavMeshLayer", 0); node.Add("m_StaticEditorFlags", 0); node.Add("m_IsActive", GetExportIsActive(container.Version)); return(node); }