{"id":20924331,"url":"https://github.com/insthync/unity-camera-and-input","last_synced_at":"2025-05-13T16:31:04.893Z","repository":{"id":37686660,"uuid":"104395292","full_name":"insthync/unity-camera-and-input","owner":"insthync","description":"A camera controller and input wrapper","archived":false,"fork":false,"pushed_at":"2025-04-21T09:31:13.000Z","size":372,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-21T10:32:58.358Z","etag":null,"topics":[],"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/insthync.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,"zenodo":null}},"created_at":"2017-09-21T20:25:00.000Z","updated_at":"2025-04-21T09:31:17.000Z","dependencies_parsed_at":"2023-02-10T06:50:13.477Z","dependency_job_id":"8dedab91-fd41-4202-8d3d-ababe8b4fcc1","html_url":"https://github.com/insthync/unity-camera-and-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2Funity-camera-and-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2Funity-camera-and-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2Funity-camera-and-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2Funity-camera-and-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insthync","download_url":"https://codeload.github.com/insthync/unity-camera-and-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253981731,"owners_count":21994319,"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-18T20:21:09.855Z","updated_at":"2025-05-13T16:30:59.883Z","avatar_url":"https://github.com/insthync.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unity-camera-and-input\n\nA collection of camera controller and input wrapper scripts\n\n## Camera controller\n- `FollowCamera` is a component which will move camera which set to `Camera` setting to follow target which set to `Target` setting.\n- `FollowCameraControls` is a component which extending from `FollowCamera` to manage rotating and zooming.\n\n* * *\n\n## Input wrapper scripts\n\n### How it work?\n\nIt has `InputManager` which is wrapper for mobile's on-screen joysticks to make it able to write the same input codes for mobile games and PC (or Mac or Linux).\n\nYou will have to change input codes:\n- `UnityEngine.Input.GetButton(name)` to `InputManager.GetButton(name)`\n- `UnityEngine.Input.GetButtonDown(name)` to `InputManager.GetButtonDown(name)`\n- `UnityEngine.Input.GetButtonUp(name)` to `InputManager.GetButtonUp(name)`\n- `UnityEngine.Input.GetAxisRaw(name)` to `InputManager.GetAxis(name, true)`\n- `UnityEngine.Input.GetAxis(name)` to `InputManager.GetAxis(name, false)`\n\n### Change input settings in `InputSettingManager` component instead of Unity's input manager\nYou can set input settings in `InputSettingManager` by add the component to empty game object, you should add it in init scene, then set input settings as you wish.\nI think it's a lot more convenient to set input settings in `InputSettingManager` component, if you don't want to use it, you still can use Unity's input manager.\n\n### Wrapper prority\nRead on-screen input -\u003e Read input setting from `InputSettingManager` -\u003e Read input setting from Unity's input manager.\n\n### How to test mobile on-screen joysticks in editor?\nTo test mobile's on-screen joysticks while running in editor, you have to set `InputManager` -\u003e `useMobileInputOnNonMobile` to `TRUE`\n\n### Rewired wrapper\nThis project is also has [Rewired](https://guavaman.com/projects/rewired/) integration, if you have it and also want to use it, you have to add `USE_REWIRED` to scripting define symbols setting.\n\n* * *\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsthync%2Funity-camera-and-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsthync%2Funity-camera-and-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsthync%2Funity-camera-and-input/lists"}