コード例 #1
0
ファイル: XmlPath.cs プロジェクト: zhutaorun/unitygame
        protected void onFindOneFile(string fullPath)
        {
            string ext = ExportUtil.getFileExt(fullPath);
            string nameNoExt = ExportUtil.getFileNameNoExt(fullPath);

            XmlAnimatorController controller = null;
            if (ExportUtil.FBX == ext)
            {
                if (!nameNoExt.Contains(ExportUtil.AT))      // 如果包含 @ ,就说明是一个动画
                {
                    m_xmlTmp.SetAttribute("outname", nameNoExt);
                    controller = new XmlAnimatorController();
                    ExportAnimatorControllerSys.m_instance.controllerList.Add(controller);
                    controller.parseXml(m_xmlTmp);

                    // 调整完整的文件名字
                    controller.adjustFileName(nameNoExt);
                }
            }
        }
コード例 #2
0
ファイル: XmlPath.cs プロジェクト: Georgiana-Unity/unitygame
        protected void onFindOneFile(string fullPath, string name)
        {
            string ext       = UtilPath.getFileExt(fullPath);
            string nameNoExt = UtilPath.getFileNameNoExt(fullPath);

            XmlAnimatorController controller = null;

            if (ExportUtil.FBX == ext)
            {
                if (!nameNoExt.Contains(ExportUtil.AT))      // 如果包含 @ ,就说明是一个动画
                {
                    m_xmlTmp.SetAttribute("outname", nameNoExt);
                    controller = new XmlAnimatorController();
                    ExportAnimatorControllerSys.m_instance.controllerList.Add(controller);
                    controller.parseXml(m_xmlTmp);

                    // 调整完整的文件名字
                    controller.adjustFileName(nameNoExt);
                }
            }
        }