1 Star 0 Fork 2

Admin / xframe

forked from Dray / xframe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

xframe

xframe是UNITY快速开发框架。提供如下功能:

  • 集成xLua
  • UGUI管理器
  • AssetBundle管理
  • 打包工具 Packer

目录结构

-\
 |- Assets
    |- Game
        |- AssetBundles         存放需要打Bundle打文件
        |- Maps                 存放Level文件
        |- Scripts              所以代码
            |- Editor           Editor相关代码
            |- LuaScripts       Lua脚本
 |- Bundles
    |- PC                       PC平台Bundlee输出目录
    |- Android                  Android平台Bundlee输出目录
    |- IOS                      IOS平台Bundlee输出目录
 |- Doc                         文档
 |- Puhlish                     打包输出目录
 hfs.exe                        HTTP File Server

Lua

xframe使用xLua实现Lua调用。

xframe所有代码都在Game命名空间中实现。在Lua环境中,xframe定义两个全局变量GU,分别表示GameUnityEngine命名空间。

建议后续开发的C#代码放入Game命名空间。

UGUI管理器

调试中。

AssetBundle管理

由Packer定义、生成文件后缀为.u的Bundle文件到Bundles/平台中。打包时会拷贝对应平台的Bundle到StreamingAsset目录。

程序启动时,如果BundleVersion不一致,更新器Updater会下载需要下载的Bundle到Application.persistentDataPath目录。BundleVersion不一致存在两种情况,一是首次安装程序,二是更新覆盖安装程序。

程序启动时,更新器Updater会检查本地Bundle与更新服务器上的差异,并下载差异。

程序运行过程中,可由下载器Downloader动态下载Bundle到本地。

打包工具 Packer

Packer包括三部分的功能:

  • 打包配置工具
  • 生成Bundle
  • 一键打包

打包配置工具

打包配置工具主要是设置打包参数与定义Bundle。

打包参数说明

配置 说明
App ID AppID
Version 版本,格式 xxx.yyy.zzz
Deveploment 是否Deveploment开打模式
Enable Update 是否开启更新
Updat Url 更新地址

Bundle定义说明

配置 说明
Name Bundle名,后续会生成Name.u的Bundle文件,如lua.u
Path Bundle对应资源路径
Pack Mode Bundle生成模式

只有打勾的Bundle定义才会打到包中,未打到包中的Bundle可由下载器Downloader后继动态下载。

Pack Mode 说明
All In One 目录生成单一Bundle
Sub Folder 为目录下每个目录生成Bundle
Sub File 为目录下每个文件生成Bundle

配置工具截图

Packer

打包工具截图

Packer

The MIT License (MIT) Copyright (c) 2018 Dray Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Unity框架 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/powerhand/xframe.git
git@gitee.com:powerhand/xframe.git
powerhand
xframe
xframe
master

搜索帮助