示例#1
0
 private static string GetTagString(IExportContainer container, GameObject origin)
 {
     if (container.Layout.GameObject.HasTagString)
     {
         return(origin.TagString);
     }
     return(container.TagIDToName(origin.Tag));
 }
示例#2
0
        private string GetTagString(IExportContainer container)
        {
#if UNIVERSAL
            if (!HasTag(container.Flags) && !HasIsActiveFirst(container.Version))
            {
                return(TagString);
            }
#endif
            return(container.TagIDToName(Tag));
        }
示例#3
0
        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);
        }