{"id":18212231,"url":"https://github.com/gameframex/com.gameframex.unity.pointcache.beastconsole","last_synced_at":"2025-08-24T21:09:08.118Z","repository":{"id":217439244,"uuid":"743862789","full_name":"GameFrameX/com.gameframex.unity.pointcache.beastconsole","owner":"GameFrameX","description":"从beastconsole二次分发而来","archived":false,"fork":false,"pushed_at":"2024-10-21T10:21:57.000Z","size":459,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T21:18:15.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GameFrameX.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-01-16T06:33:46.000Z","updated_at":"2024-10-21T10:23:15.000Z","dependencies_parsed_at":"2024-01-16T12:50:24.982Z","dependency_job_id":"2f6f34d2-7552-4181-a49c-181793e3a4f5","html_url":"https://github.com/GameFrameX/com.gameframex.unity.pointcache.beastconsole","commit_stats":null,"previous_names":["alianblank/com.pointcache.beastconsole","gameframex/com.gameframex.unity.pointcache.beastconsole"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.pointcache.beastconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.pointcache.beastconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.pointcache.beastconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.pointcache.beastconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GameFrameX","download_url":"https://codeload.github.com/GameFrameX/com.gameframex.unity.pointcache.beastconsole/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247730064,"owners_count":20986404,"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":[],"created_at":"2024-11-03T15:40:27.034Z","updated_at":"2025-04-07T21:18:19.415Z","avatar_url":"https://github.com/GameFrameX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beast Console\n\nBeastConsole is evolution (hopefully) of SmartConsole,\n\n该库主要服务于 `https://github.com/AlianBlank/GameFrameX` 作为子库使用。\n\n\n# 使用方式(三种方式)\n1. 直接在 `manifest.json` 文件中添加以下内容\n   ```json\n      {\"com.pointcache.beastconsole\": \"https://github.com/AlianBlank/com.pointcache.beastconsole.git\"}\n    ```\n2. 在Unity 的`Packages Manager` 中使用`Git URL` 的方式添加库,地址为：https://github.com/AlianBlank/com.pointcache.beastconsole.git\n\n3. 直接下载仓库放置到Unity 项目的`Packages` 目录下。会自动加载识别\n\n# 改动功能\n\n1. 增加 `Packages` 的支持\n2. 增加自定义类型列表的支持\n3. 修改为必须手动调用初始化注册\n4. 增加移动平台无法输入 Return 按键的问题\n# 注意\n\n    预制体对象默认为自动加载。放到场景中时。请将 `Auto Register` 设置为 `false` !!!\n\n# 以下为原内容\n\n![License MIT](https://img.shields.io/badge/license-MIT-green.svg)\n\n# Beast Console\n\n![screen](https://i.imgur.com/HwZk4ZJ.jpg)\n\n\n## Recently updated to remove any trace of UGUI. Now its pure IMGUI, with no additional clutter.\n\nThis project is possible because of the effort of amazing people at Cranium Software\nthis project is based of SmartConsole https://github.com/CraniumSoftware/SmartConsole\n\nBeastConsole is evolution (hopefully) of SmartConsole,\n\n\n# Console\n* Backend is created by folks at CraniumSoftware.\n* Use attributes to bind members \n* Register your own arbitrary commands/methods for any object(non monob as well) and provide parameters\n* Autocomplete\n* Both commands and variables support any number of subscribers, modify all objects at once.\n* Multiline\n* Suggestions\n* History\n* ConsoleUtility class containing methods to draw tables. (You can actually use ConsoleUtility pretty much by itself instead of Console class).\n\n# Usage\n\nsetup:\n\tDrop Console prefab in scene, change parameters to your liking.\n \nAttributes:\n\nConsole uses reflection to find attributes, to speed up the whole process we should mark any class that has uses console \nattributes with `[ConsoleParse]` attribute.\n\n```csharp\n\n[ConsoleParse]\npublic class AttributeTest : MonoBehaviour {\n\n    [ConsoleVariable(\"testvar\", \"\")]\n    public float TestVariable = 5f;\n\n    [ConsoleVariable(\"testproperty\", \"\")]\n    public bool TestPropertyVariable\n    {\n        set {\n            Console.WriteLine(\"testproperty was set to: \" + value);\n        }\n    }\n\n\n    [ConsoleCommand(\"testMethod\", \"\")]\n\tvoid TestMethod() {\n        BeastConsole.Console.WriteLine(\"test method works\");\n    }\n\n    [ConsoleCommand(\"testMethodWithParams\", \"\")]\n    public void TestMethodWithParams(float param1) {\n        BeastConsole.Console.WriteLine(\"works :\" + param1.ToString());\n\n    }\n\n    [ConsoleCommand(\"testMethodWith2Params\", \"\")]\n    public void TestMethodWith2Params(float param1, int param2) {\n        BeastConsole.Console.WriteLine(\"works :\" + (param1+ param2).ToString());\n\n    }\n}\n\n\n```\n\nManual:\n\n```csharp\n\npublic float Volume = 1f;\nConsole.RegisterVariable\u003cfloat\u003e(\"Volume\", \"\", x =\u003e Volume = x, this);\n\nConsole.RegisterCommand(\"MoveUp\", \"\", this, MoveUp);\n   \nprivate void MoveUp(string[] val) {\n   transform.position += new Vector3(0, System.Convert.ToSingle(val[1]) , 0);\n}\n\n```\nManual method requires you to unregister commands and variables when done with an object.\n\nSee Example folder for more examples.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.pointcache.beastconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.pointcache.beastconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.pointcache.beastconsole/lists"}