{"id":15160749,"url":"https://github.com/whoisfpc/com.whoisfpc.consolevariable","last_synced_at":"2026-01-21T15:32:50.925Z","repository":{"id":109932460,"uuid":"186143181","full_name":"whoisfpc/com.whoisfpc.consolevariable","owner":"whoisfpc","description":"unity console variable","archived":false,"fork":false,"pushed_at":"2019-11-02T14:47:58.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T20:41:28.435Z","etag":null,"topics":["unity","unity-package-manager","unity3d-plugin","unitypackage","utility-library"],"latest_commit_sha":null,"homepage":null,"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/whoisfpc.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}},"created_at":"2019-05-11T14:30:48.000Z","updated_at":"2019-11-02T14:48:00.000Z","dependencies_parsed_at":"2023-04-01T12:49:22.354Z","dependency_job_id":null,"html_url":"https://github.com/whoisfpc/com.whoisfpc.consolevariable","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"4e5b7489fa6887e870561c948d5c9a9ce2bc186e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whoisfpc/com.whoisfpc.consolevariable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisfpc%2Fcom.whoisfpc.consolevariable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisfpc%2Fcom.whoisfpc.consolevariable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisfpc%2Fcom.whoisfpc.consolevariable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisfpc%2Fcom.whoisfpc.consolevariable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whoisfpc","download_url":"https://codeload.github.com/whoisfpc/com.whoisfpc.consolevariable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisfpc%2Fcom.whoisfpc.consolevariable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["unity","unity-package-manager","unity3d-plugin","unitypackage","utility-library"],"created_at":"2024-09-26T23:22:14.874Z","updated_at":"2026-01-21T15:32:50.908Z","avatar_url":"https://github.com/whoisfpc.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console Variable\r\nSo it is a simple console variable implement for unity.\r\n\r\n## How to use\r\n1. Open **Packages/manifest.json** and add dependency\r\n```json\r\n    \"dependencies\": {\r\n        \"com.whoisfpc.consolevariable\": \"https://github.com/whoisfpc/com.whoisfpc.consolevariable.git\",\r\n    }\r\n```\r\n2. For any static `int` or `float` variables, add below attribute. The CVarAttribute accept two parameters, the first is name for console varialbe, and the second is description for that.\r\n```csharp\r\nusing ConsoleVariable;\r\n\r\npublic class CVarTest : MonoBehaviour\r\n{\r\n    [CVar(\"cube.scale\", \"some console varialbe description\")]\r\n    static int cubeScale = 1;\r\n}\r\n```\r\n3. For any static method, you can add `CCmd` attribute to add cmd in console. For now, method args type must be `float`, `int`, or `string`. The name of `CCmd` and `CVar` should not same;\r\n```csharp\r\nusing ConsoleVariable;\r\n\r\npublic class CCmdTest : MonoBehaviour\r\n{\r\n    [CCmd(\"test.hello\", \"some console command description\")]\r\n    static void Hello()\r\n    {\r\n        Debug.Log(\"Hello!\");\r\n    }\r\n}\r\n```\r\n4. You can write your own console gui implement or use my simple gui prefab at **Runtime/Prefabs/ConsoleGUI**\r\n\r\n## Simple Console Gui\r\nI made a simple console gui, you can find it at PackageFolder/Runtime/Prefabs/ConsoleGUI. For using it, just drag it to scene. At run time, press **\u0026apos;** key(BackQuote key) to toggle console gui. You can input `CVarName [number]` to set CVar value, or input `CVarName` to see CVar's current value.\r\nYou could press **Tab** key to auto complete command.\r\n\r\n## Example\r\n![](cvar_demo.gif)\r\n\r\n## License\r\nThis project is licensed under the MIT License - see the **LICENSE.md** file for details\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhoisfpc%2Fcom.whoisfpc.consolevariable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhoisfpc%2Fcom.whoisfpc.consolevariable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhoisfpc%2Fcom.whoisfpc.consolevariable/lists"}