{"id":13786373,"url":"https://github.com/thedoritos/unimgpicker","last_synced_at":"2025-05-11T22:30:59.466Z","repository":{"id":47312843,"uuid":"72331021","full_name":"thedoritos/unimgpicker","owner":"thedoritos","description":"Image picker for Unity iOS/Android","archived":false,"fork":false,"pushed_at":"2024-01-04T11:41:46.000Z","size":43979,"stargazers_count":205,"open_issues_count":13,"forks_count":47,"subscribers_count":17,"default_branch":"main","last_synced_at":"2024-11-17T22:36:17.269Z","etag":null,"topics":["image-picker","plugins","unity"],"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/thedoritos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-30T06:04:25.000Z","updated_at":"2024-10-29T04:04:31.000Z","dependencies_parsed_at":"2024-01-17T05:48:12.204Z","dependency_job_id":"6f77531c-23ba-47eb-94fe-02ad9c409e4e","html_url":"https://github.com/thedoritos/unimgpicker","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedoritos%2Funimgpicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedoritos%2Funimgpicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedoritos%2Funimgpicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedoritos%2Funimgpicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedoritos","download_url":"https://codeload.github.com/thedoritos/unimgpicker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253645103,"owners_count":21941311,"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":["image-picker","plugins","unity"],"created_at":"2024-08-03T19:01:14.661Z","updated_at":"2025-05-11T22:30:54.431Z","avatar_url":"https://github.com/thedoritos.png","language":"C#","funding_links":[],"categories":["Open Source Repositories","Mobile","C# #","iOS / Android"],"sub_categories":["Utilities","HUD"],"readme":"# unimgpicker\n\nImage picker for Unity iOS/Android\n\n![unimgpicker_ios](Documentation~/res/unimgpicker_ios.gif)\n![unimgpicker_android](Documentation~/res/unimgpicker_android.gif)\n\n## Getting Started\n\nImport `unimgpicker.unitypackage` into your project.\n\n:warning: For package developers: This project is under work to adapt with Package Manager. Please use `.unitypackage` until the migration is done.\n\nDefine Photo Library Usage Description on `Unimgpicker/Editor/NSPhotoLibraryUsageDescription.txt`\n\nex: **Unimgpicker/Editor/NSPhotoLibraryUsageDescription.txt**\n\n```\nUse the image to create your profile.\n```\n\n## Demo\n\nRead image, create texture and render it on the Cube(MeshRenderer).\n\n```csharp\nusing UnityEngine;\nusing System.Collections;\n\nnamespace Kakera\n{\n    public class PickerController : MonoBehaviour\n    {\n        [SerializeField]\n        private Unimgpicker imagePicker;\n\n        [SerializeField]\n        private MeshRenderer imageRenderer;\n\n        void Awake()\n        {\n            // Unimgpicker returns the image file path.\n            imagePicker.Completed += (string path) =\u003e\n            {\n                StartCoroutine(LoadImage(path, imageRenderer));\n            };\n        }\n\n        public void OnPressShowPicker()\n        {\n            // With v1.1 or greater, you can set the maximum size of the image\n            // to save the memory usage.\n            imagePicker.Show(\"Select Image\", \"unimgpicker\", 1024);\n        }\n\n        private IEnumerator LoadImage(string path, MeshRenderer output)\n        {\n            var url = \"file://\" + path;\n            var www = new WWW(url);\n            yield return www;\n\n            var texture = www.texture;\n            if (texture == null)\n            {\n                Debug.LogError(\"Failed to load texture url:\" + url);\n            }\n\n            output.material.mainTexture = texture;\n        }\n    }\n}\n```\n\n## Environment\n\nThe code is developed on following environments. Note that these are NOT minimum version requirements.\n\n| Platform | OS |  IDE |\n| --- | --- | --- |\n| iOS | 13.3 | Xcode 11.6 |\n| Android | 10.0 (API 29) | Android Studio 4.0.1 |\n\n### Minimum SDK Versions\n\n| Platform | SDK Version |\n| --- | --- |\n| Android | 6.0 (API 23) |\n\n## For Developers\n\n### Running formatter\n\n```sh\n# If clang-format is installed.\n$ make format\n\n# If docker is installed.\n$ docker build -t unimgpicker .\n$ docker run --rm -v $PWD:/build -w /build unimgpicker make format\n```\n\n### Customize Unimgpicker by Self\n\nUnimgpicker embedds Obj-C \u0026 Java code as Unity plugin.\nYou can make changes to the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedoritos%2Funimgpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedoritos%2Funimgpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedoritos%2Funimgpicker/lists"}