跳到主要内容
版本:v3

快速上手

重要 注意 提醒

Coding Style wiki​


开始安装 OxGFrame with YooAsset + HybridCLR

步骤 1. (安装依赖)​

通过 Package Manager 安装 (Install via git)

https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask

通过 Package Manager 安装 (Install via git)

https://github.com/cout-m6o/LWMyBox.git

通过 Package Manager 安装 (Install via git)

https://github.com/cout-m6o/OxGKit.git?path=Assets/OxGKit/LoggingSystem/Scripts

通过 Package Manager 安装 (Install via git)

https://github.com/cout-m6o/OxGKit.git?path=Assets/OxGKit/SaverSystem/Scripts

通过 Package Manager 安装 (Install via git)

https://github.com/cout-m6o/OxGKit.git?path=Assets/OxGKit/TimeSystem/Scripts

通过 Package Manager 安装 (Install via git)

https://github.com/cout-m6o/OxGKit.git?path=Assets/OxGKit/Utilities/Scripts

通过 Package Manager 安装 (Install via git)

https://github.com/focus-creative-games/hybridclr_unity.git

通过 Package Manager 安装 (Install via git)

https://github.com/tuyoogame/YooAsset.git?path=Assets/YooAsset

通过 Package Manager 安装 (Install by name)

com.unity.textmeshpro

通过 Package Manager 安装 (Install by name)

com.unity.nuget.newtonsoft-json

步骤 2. (安装框架)​

方法一​

OxGFrame

通过 Package Manager 安装 (Install via git)

https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame

管理组件导入 (Samples)

方法二​

直接下载源码 (Code Download ZIP)

复制 OxGFrame 文件夹到 Unity 新项目的 Assets 目录下。

提醒 如果没有要自行更改框架的需求,建议直接使用 Package Manager 方式安装。



方法三​

如果只有特定模块使用需求,可以单独安装该模块。

重要 自 v3.7.0 起,各模块皆依赖 Common 模块(Package Manager 不会自动安装包内声明的 git 依赖),单独安装任一模块前,请先安装 Common。

  • Common (框架共用基础模块)
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/Common
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/AssetLoader
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/CoreFrame
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/MediaFrame
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/Hotfixer
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/GSIFrame
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/CenterFrame
https://github.com/cout-m6o/OxGFrame.git?path=Assets/OxGFrame/NetFrame

AI 辅助开发 (AI Agent Skills)​

OxGFrame 支持使用 AI 编码代理(Claude Code、OpenAI Codex CLI、Cursor、Copilot 等)辅助开发,框架内置对应的 Agent Skill——导入与安装方式详见 AI Agent Skills。


内置第三方依赖库​


宏定义​

框架 API​

※备注 : 建议详看各模块的 Example (注意 "res#" 和 "build#" 的使用规则)。

额外有需要编写 BuildTool 的可以调用

框架配置​

可以通过 Right-Click 创建配置文件,进行部分设定客制化。

PatchSettings​

HotfixSettings​

CodeBindingSettings​

CryptogramSettings​