{"id":25791141,"url":"https://github.com/yanicksenn/unity-console","last_synced_at":"2026-04-27T00:31:44.906Z","repository":{"id":134783631,"uuid":"460334631","full_name":"yanicksenn/unity-console","owner":"yanicksenn","description":"Unity3d package allowing the toggling of console output and debugging of UnityEvents.","archived":false,"fork":false,"pushed_at":"2022-03-19T21:29:27.000Z","size":286,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T10:51:06.940Z","etag":null,"topics":["game-development","open-source","unity","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/yanicksenn.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":"2022-02-17T07:55:17.000Z","updated_at":"2022-03-19T21:28:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"637c6d7d-180e-46f0-8b54-89ef7f7de50e","html_url":"https://github.com/yanicksenn/unity-console","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yanicksenn/unity-console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanicksenn%2Funity-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanicksenn%2Funity-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanicksenn%2Funity-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanicksenn%2Funity-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanicksenn","download_url":"https://codeload.github.com/yanicksenn/unity-console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanicksenn%2Funity-console/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32318417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: 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":["game-development","open-source","unity","unity3d"],"created_at":"2025-02-27T12:54:44.957Z","updated_at":"2026-04-27T00:31:44.867Z","avatar_url":"https://github.com/yanicksenn.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Console\nUnity3d package allowing the toggling of console output and debugging of UnityEvents.\n\nFeedback is welcome.\n\n## Plug and Play\n1. Open \"Package Manager\"\n2. Choose \"Add package from git URL...\"\n3. Use the HTTPS URL of this repository:\n   `https://github.com/yanicksenn/unity-console.git#1.0.0`\n4. Click \"Add\"\n\n## Usage\n- [Console](#user-content-console)\n- [Logging](#user-content-logging)\n- [Toggling](#user-content-toggling)\n\n### Console\n\nA console can be created through the asset menu \u003e Create \u003e Console \u003e ... .\n\n![Asset menu](./Documentation/asset-menu.png)\n\n### Logging\n\nYou can inject a console throught the inspector into your script.\n\nIs is possible to use lazy logging or normal logging, although it is recommended to always use lazy logging inside of a script.\n\n| Lazy logging             | Normal logging |\n|--------------------------|----------------|\n| `LazyLog(() =\u003e ...)`     | `Log(...)`     |\n| `LazyWarning(() =\u003e ...)` | `Warning(...)` |\n| `LazyError(() =\u003e ...)`   | `Error(...)`   |\n\n```c#\npublic class MyBehaviour : MonoBehaviour\n{\n    public Console console;\n    \n    private Start()\n    {\n        console?.LazyLog(() =\u003e \"Hello, World!\");\n    }\n}\n```\n\nNormal logging is recommended through a unity event.\n\n```c#\npublic class MyBehaviour : MonoBehaviour\n{\n    public UnityEvent unityEvent = new UnityEvent();\n    \n    private Awake()\n    {\n        unityEvent.Invoke();\n    }\n}\n```\n\n![Unity event](./Documentation/unity-event.png)\n\nAfter the untiy event was invoked the following output will appear in the editor console.\n\n![Output](./Documentation/output.png)\n\n### Toggling\n\nNo messages will be printed to the console when it is set to inactive.\n\n![Toggle active](./Documentation/toggle-active.png)\n\n_Active console_\n\n![Toggle inactive](./Documentation/toggle-inactive.png)\n\n_Inactive console_\n\nLazy logging ensures that no messages are generated while normal logging always generates a message but will only print it when the console is active.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanicksenn%2Funity-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanicksenn%2Funity-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanicksenn%2Funity-console/lists"}