{"id":21358849,"url":"https://github.com/gameframex/com.gameframex.unity.globalconfig","last_synced_at":"2025-10-11T00:37:22.223Z","repository":{"id":232326130,"uuid":"784040935","full_name":"GameFrameX/com.gameframex.unity.globalconfig","owner":"GameFrameX","description":"GameFrameX是一款全面的集成式游戏开发框架，提供了从前端到后端的完整解决方案。该框架支持包括Unity、Cocos Creator、LayaBox、和Godot等多种主流游戏开发平台，确保开发者能够为不同的目标平台打造精美的游戏体验。","archived":false,"fork":false,"pushed_at":"2025-06-09T11:54:05.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-09T12:43:00.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gameframex.doc.alianblank.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GameFrameX.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-09T04:18:44.000Z","updated_at":"2025-06-09T11:54:09.000Z","dependencies_parsed_at":"2024-04-09T06:25:11.148Z","dependency_job_id":"cb7d6143-6eda-4c3c-a3a4-240df32bbed3","html_url":"https://github.com/GameFrameX/com.gameframex.unity.globalconfig","commit_stats":null,"previous_names":["alianblank/com.alianblank.gameframex.globalconfig","gameframex/com.gameframex.unity.globalconfig"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/GameFrameX/com.gameframex.unity.globalconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.globalconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.globalconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.globalconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.globalconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GameFrameX","download_url":"https://codeload.github.com/GameFrameX/com.gameframex.unity.globalconfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.globalconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005646,"owners_count":26083942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T05:22:39.309Z","updated_at":"2025-10-11T00:37:22.208Z","avatar_url":"https://github.com/GameFrameX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿## HOMEPAGE\n\nGameFrameX 的 GlobalConfig 全局配置组件\n\n**GlobalConfig 全局配置组件 (GlobalConfig Component)** - 提供全局配置组件相关的接口。\n\n# 使用文档(文档编写于GPT4)\n\n`GlobalConfigComponent`组件：\n\n## 组件说明\n\n`GlobalConfigComponent` 是一个用于规划和使用全局配置的组件。该组件在 Unity 游戏项目中管理应用程序版本和资源版本检查的URL，以及其他可能需要全局访问的内容或配置。\n\n## 功能概述\n\n1. `CheckAppVersionUrl` 属性用于存储检查应用程序版本的URL地址。它允许游戏能够确定是否有新的应用版本可用。\n\n2. `CheckResourceVersionUrl` 属性用于存储检查游戏资源版本的URL地址。这确保了游戏可以检查并下载新的或更新的资源。\n\n3. `Content` 属性允许保存任何附加的内容或数据，可能用于在游戏内显示或用于其它业务逻辑。\n\n4. `HostServerUrl` 属性包含主机服务的URL，可能用作连接后端服务器的地址。\n\n## 使用指南\n\n1. **添加组件**： 将`GlobalConfigComponent`作为组件添加到Unity场景中的任意一个游戏对象上。\n\n2. **设置属性**： 在 Unity 的 Inspector 面板中设置`CheckAppVersionUrl`，`CheckResourceVersionUrl`，`Content`和`HostServerUrl`的值，或者通过代码在运行时动态设置。\n\n3. **资源管理**： 使用`CheckAppVersionUrl`和`CheckResourceVersionUrl`来管理游戏的版本控制和资源更新流程。\n\n4. **全局访问**： 你可以在游戏的任何地方访问`GlobalConfigComponent`实例来获取所需的全局配置信息。\n\n# 使用方式(任选其一)\n\n1. 直接在 `manifest.json` 的文件中的 `dependencies` 节点下添加以下内容\n   ```json\n      {\"com.gameframex.unity.globalconfig\": \"https://github.com/AlianBlank/com.gameframex.unity.globalconfig.git\"}\n    ```\n2. 在Unity 的`Packages Manager` 中使用`Git URL` 的方式添加库,地址为：https://github.com/AlianBlank/com.gameframex.unity.globalconfig.git\n\n3. 直接下载仓库放置到Unity 项目的`Packages` 目录下。会自动加载识别","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.globalconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.globalconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.globalconfig/lists"}