{"id":21051737,"url":"https://github.com/unity-package/remote-config-manager-unity","last_synced_at":"2025-05-15T21:36:10.388Z","repository":{"id":248509573,"uuid":"823464485","full_name":"unity-package/remote-config-manager-unity","owner":"unity-package","description":"Tool support use firebase remote config for game unity","archived":false,"fork":false,"pushed_at":"2025-05-13T03:26:52.000Z","size":17,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-13T04:25:01.903Z","etag":null,"topics":["firebase-remote-config","remoteconfig","unity","unity-package","unity-packages","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unity-package.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-07-03T05:04:25.000Z","updated_at":"2025-05-13T03:26:56.000Z","dependencies_parsed_at":"2024-08-27T09:42:20.510Z","dependency_job_id":"673be23f-f10e-4465-b7b5-aa5554531c60","html_url":"https://github.com/unity-package/remote-config-manager-unity","commit_stats":null,"previous_names":["wolf-package/remote-config-manager-unity","wolf-org/remote-config-manager-unity","unity-package/remote-config-manager-unity"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity-package%2Fremote-config-manager-unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity-package%2Fremote-config-manager-unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity-package%2Fremote-config-manager-unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity-package%2Fremote-config-manager-unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unity-package","download_url":"https://codeload.github.com/unity-package/remote-config-manager-unity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254425767,"owners_count":22069230,"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","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":["firebase-remote-config","remoteconfig","unity","unity-package","unity-packages","unity3d"],"created_at":"2024-11-19T15:59:36.307Z","updated_at":"2025-05-15T21:36:10.380Z","avatar_url":"https://github.com/unity-package.png","language":"C#","readme":"\u003cp align=\"left\"\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Made With Unity\" src=\"https://img.shields.io/badge/made%20with-Unity-57b9d3.svg?logo=Unity\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/unity-package/remote-config-manager-unity?logo=github\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Last Commit\" src=\"https://img.shields.io/github/last-commit/unity-package/remote-config-manager-unity?logo=Mapbox\u0026color=orange\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Repo Size\" src=\"https://img.shields.io/github/repo-size/unity-package/remote-config-manager-unity?logo=VirtualBox\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Last Release\" src=\"https://img.shields.io/github/v/release/unity-package/remote-config-manager-unity?include_prereleases\u0026logo=Dropbox\u0026color=yellow\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## What\n- Tool support use firebase remote config for game unity\n## How To Install\n\n### Add the line below to `Packages/manifest.json`\n\nfor version `1.0.2`\n```json\n\"com.wolf-org.remote-config\":\"https://github.com/unity-package/remote-config-manager-unity.git#1.0.2\",\n```\ndependency `extensions-unity-1.0.5`\n```json\n\"com.wolf-org.extensions\":\"https://github.com/unity-package/extensions-unity.git#1.0.5\",\n```\nIf you use [game-data-unity](https://github.com/wolf-package/game-data-unity), add the library below and define symbol `VIRTUESKY_DATA`\n```json\n\"com.wolf-org.game-data\":\"https://github.com/unity-package/game-data-unity.git#1.0.2\",\n```\n\n## Use\n\n- Add `Define symbol` to use remote config  (`VIRTUESKY_FIREBASE`, `VIRTUESKY_FIREBASE_REMOTECONFIG`)\n\n- Attach `FirebaseRemoteConfigManager` to scene (don't destroy). Please add a `Remote Config Data` to the list, then enter the key, select the corresponding data type (int, bool, string), enter the default value. Finally, click `Generate Remote Data` when you have finished setup.\n\n![Screenshot 2024-05-17 112334](https://github.com/wolf-package/unity-common/assets/102142404/728f0c8e-f604-4153-acea-63feac00ab52)\n\n- After clicking `Generate Remote Data`, the `RemoteData.cs` script will be automatically generated and formatted as below.\n\n```csharp\n\nnamespace VirtueSky.RemoteConfigs\n{\n\tpublic struct RemoteData\n\t{\n\t\tpublic const string KEY_RMC_LEVEL_TURN_ON_INTER_ADS = \"RMC_LEVEL_TURN_ON_INTER_ADS\";\n\t\tpublic const int DEFAULT_RMC_LEVEL_TURN_ON_INTER_ADS = 5;\n\t\tpublic static int RMC_LEVEL_TURN_ON_INTER_ADS =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_LEVEL_TURN_ON_INTER_ADS, DEFAULT_RMC_LEVEL_TURN_ON_INTER_ADS);\n\t\tpublic const string KEY_RMC_INTER_CAPPING_LEVEL = \"RMC_INTER_CAPPING_LEVEL\";\n\t\tpublic const int DEFAULT_RMC_INTER_CAPPING_LEVEL = 2;\n\t\tpublic static int RMC_INTER_CAPPING_LEVEL =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_INTER_CAPPING_LEVEL, DEFAULT_RMC_INTER_CAPPING_LEVEL);\n\t\tpublic const string KEY_RMC_INTER_CAPPING_TIME = \"RMC_INTER_CAPPING_TIME\";\n\t\tpublic const int DEFAULT_RMC_INTER_CAPPING_TIME = 8;\n\t\tpublic static int RMC_INTER_CAPPING_TIME =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_INTER_CAPPING_TIME, DEFAULT_RMC_INTER_CAPPING_TIME);\n\t\tpublic const string KEY_RMC_ON_OFF_INTER = \"RMC_ON_OFF_INTER\";\n\t\tpublic const bool DEFAULT_RMC_ON_OFF_INTER = true;\n\t\tpublic static bool RMC_ON_OFF_INTER =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_ON_OFF_INTER, DEFAULT_RMC_ON_OFF_INTER);\n\t\tpublic const string KEY_RMC_ON_OFF_BANNER = \"RMC_ON_OFF_BANNER\";\n\t\tpublic const bool DEFAULT_RMC_ON_OFF_BANNER = true;\n\t\tpublic static bool RMC_ON_OFF_BANNER =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_ON_OFF_BANNER, DEFAULT_RMC_ON_OFF_BANNER);\n\t\tpublic const string KEY_RMC_LEVEL_SHOW_RATE_AND_REVIEW = \"RMC_LEVEL_SHOW_RATE_AND_REVIEW\";\n\t\tpublic const int DEFAULT_RMC_LEVEL_SHOW_RATE_AND_REVIEW = 3;\n\t\tpublic static int RMC_LEVEL_SHOW_RATE_AND_REVIEW =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_LEVEL_SHOW_RATE_AND_REVIEW, DEFAULT_RMC_LEVEL_SHOW_RATE_AND_REVIEW);\n\t\tpublic const string KEY_RMC_ON_OFF_RATE_AND_REVIEW = \"RMC_ON_OFF_RATE_AND_REVIEW\";\n\t\tpublic const bool DEFAULT_RMC_ON_OFF_RATE_AND_REVIEW = true;\n\t\tpublic static bool RMC_ON_OFF_RATE_AND_REVIEW =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_ON_OFF_RATE_AND_REVIEW, DEFAULT_RMC_ON_OFF_RATE_AND_REVIEW);\n\t\tpublic const string KEY_RMC_VERSION_UPDATE = \"RMC_VERSION_UPDATE\";\n\t\tpublic const string DEFAULT_RMC_VERSION_UPDATE = \"1.0\";\n\t\tpublic static string RMC_VERSION_UPDATE =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_VERSION_UPDATE, DEFAULT_RMC_VERSION_UPDATE);\n\t\tpublic const string KEY_RMC_CONTENT_UPDATE = \"RMC_CONTENT_UPDATE\";\n\t\tpublic const string DEFAULT_RMC_CONTENT_UPDATE = \"Update Content\";\n\t\tpublic static string RMC_CONTENT_UPDATE =\u003e VirtueSky.DataStorage.GameData.Get(KEY_RMC_CONTENT_UPDATE, DEFAULT_RMC_CONTENT_UPDATE);\n\t}\n}\n\n```\n\n- Handle\n\nFrom the `RemoteData` script, you can retrieve `key data`, `default values`, and `data` fetched from firebase remote configuration.\n\nExample\n\n```csharp\n\n    void HandleBannerAds()\n    {\n        if (RemoteData.RMC_ON_OFF_BANNER)\n        {\n            // show banner ads\n        }\n    }\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funity-package%2Fremote-config-manager-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funity-package%2Fremote-config-manager-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funity-package%2Fremote-config-manager-unity/lists"}