{"id":20314318,"url":"https://github.com/normandy72/unity-cb-rb-tb","last_synced_at":"2026-05-11T10:32:08.450Z","repository":{"id":153902838,"uuid":"625203151","full_name":"Normandy72/Unity-CB-RB-TB","owner":"Normandy72","description":"How to create a CheckBox, a RadioButton and a TextBox in Unity.","archived":false,"fork":false,"pushed_at":"2023-04-08T19:01:39.000Z","size":1511,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T20:46:38.464Z","etag":null,"topics":["csharp","csharp-code","unity","unity2d","unityui"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Normandy72.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-08T11:35:23.000Z","updated_at":"2023-04-08T17:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"e94d6132-5600-44cf-95d2-4ee14896de18","html_url":"https://github.com/Normandy72/Unity-CB-RB-TB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Normandy72/Unity-CB-RB-TB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-CB-RB-TB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-CB-RB-TB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-CB-RB-TB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-CB-RB-TB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Normandy72","download_url":"https://codeload.github.com/Normandy72/Unity-CB-RB-TB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-CB-RB-TB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32890650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["csharp","csharp-code","unity","unity2d","unityui"],"created_at":"2024-11-14T18:14:48.702Z","updated_at":"2026-05-11T10:32:08.427Z","avatar_url":"https://github.com/Normandy72.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instructions\n\n## Checkbox\n1. Create a __Canvas__, change its color if you need.\n2. Add a __Toggle__ (UI -\u003e Toggle). Change font size, checkmark size if needed.\n3. In Toggle in _OnValueChanged_ component add new item, drop a Title, select GameObject -\u003e SetActive.\n\n## Radio Button\n1. Create a __Canvas__, change its color if you need.\n2. (not necessary) Add a __Panel__, change its size and color.\n3. Add some __Text__ (may be Question).\n4. Create __Empty GameObject__ (rename it to _Options_) for all answers.\n5. Inside the Options create a __Toggle__ (UI -\u003e Toggle), rename it, change Label Text, font size, position, etc.\n6. Dublicate first option as many times as you need. Change info.\n7. Add a __Toggle Group__ component to Options.\n8. Select ALL toggles, in __Toggle__ component change _Group_ to \"Options\".\n9. Inside the Panel create a __Button__ (rename to Submit Button).\n10. Create a new __Script__. Add it to Options.\n11. Create a Submit method. Inside a OnClick() component of SubmitButton add Options and check its Submit method.\n12. You can also create a new __Sprite__ (2d objects -\u003e sprites -\u003e circle), and set it as a source image in toggle's background.\n\n## Switch Toggle\n1. Create a __Canvas__, change its color, size, etc.\n2. Create an empty __GameObject__ (rename to _SwitchToggle_). Add an __Image__ inside (rename to _Background_), change its size and color.\n3. In source image add a _bg1_ sprite.\n4. Inside of Background add a new __Image__ (rename to _Handle_), in source image add a _handle1_ sprite.\n5. Add text field if needed.\n6. In SwitchToggle add a new component __Toggle__.\n7. In Toggle component drop SwitchToggle background image into _Target Graphic_.\n8. Create a new C# script (_SwitchToggle_). Add logic. Add this script to SwitchToggle.\n9. For animation: download DoTween asset from Asset Store, import it. Add library in script. Add logic in script.\n\n## Registration\n#### Scene with TextBox, CheckBox and Button\n1. Create a __Canvas__, change its color, size, etc.\n2. Create text fields (in this case - for name, surname and age).\n3. Add an __Imput Field__ for each text field (UI -\u003e ImputField), change its size, color, placeholder, etc.\n4. Add a __Toggle__, change its label, size, etc. In _Toggle_ component uncheck _IsOn_.\n5. Add a __Button__, rename it to _SubmitButton_.\n6. Add text fields for messages.\n7. Create an empty __GameObject__ (rename to _CheckErrorController_).\n8. Create a new script and attach it to CheckErrorController, add logic.\n9. Create a text field for erroe message.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Funity-cb-rb-tb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormandy72%2Funity-cb-rb-tb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Funity-cb-rb-tb/lists"}