{"id":16209226,"url":"https://github.com/gilzoide/unity-camera-viewport-rect","last_synced_at":"2025-03-19T08:31:02.613Z","repository":{"id":62896455,"uuid":"563455195","full_name":"gilzoide/unity-camera-viewport-rect","owner":"gilzoide","description":"Automatically setup Camera viewports from RectTransforms in Unity","archived":false,"fork":false,"pushed_at":"2023-05-20T00:09:28.000Z","size":4116,"stargazers_count":38,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T05:11:32.583Z","etag":null,"topics":["3d","camera","recttransform","responsive","ui","unity","unity3d","viewport"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilzoide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["gilzoide"],"patreon":null,"open_collective":null,"ko_fi":"gilzoide","tidelift":null,"community_bridge":null,"liberapay":"gilzoide","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-11-08T16:42:41.000Z","updated_at":"2025-03-13T01:48:01.000Z","dependencies_parsed_at":"2024-10-27T20:25:54.036Z","dependency_job_id":"03b89e26-5c6e-4f39-932a-b3de1d3a9ace","html_url":"https://github.com/gilzoide/unity-camera-viewport-rect","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-camera-viewport-rect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-camera-viewport-rect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-camera-viewport-rect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-camera-viewport-rect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilzoide","download_url":"https://codeload.github.com/gilzoide/unity-camera-viewport-rect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244389782,"owners_count":20445002,"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":["3d","camera","recttransform","responsive","ui","unity","unity3d","viewport"],"created_at":"2024-10-10T10:28:48.897Z","updated_at":"2025-03-19T08:31:00.212Z","avatar_url":"https://github.com/gilzoide.png","language":"C#","funding_links":["https://github.com/sponsors/gilzoide","https://ko-fi.com/gilzoide","https://liberapay.com/gilzoide"],"categories":[],"sub_categories":[],"readme":"# Camera Viewport Rect\n[![openupm](https://img.shields.io/npm/v/com.gilzoide.camera-viewport-rect?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gilzoide.camera-viewport-rect/)\n\nAutomatically setup `Camera` viewports from `RectTransform`s.\n\nThis way one can easily show 3D models directly into responsive UI without the need of setting up `RenderTexture`s.\n\n![Demonstration of the CameraViewportRect script](Extras~/demo.gif)\n\n\n## Features\n- Supports canvases in both `Screen Space - Camera` and `Screen Space - Overlay` modes.\n  Using `Screen Space - Camera` mode is recommended to make sure the camera renders above the UI.\n- Supports enabling/disabling the target Camera when the script itself gets enabled/disabled\n\n\n## How to install\nEither:\n\n- Install using [openupm](https://openupm.com/):\n  ```\n  openupm add com.gilzoide.camera-viewport-rect\n  ```\n\n- Install via [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html) using the following URL:\n  ```\n  https://github.com/gilzoide/unity-camera-viewport-rect.git#1.0.1\n  ```\n\n- Copy the script [CameraViewportRect.cs](Runtime/CameraViewportRect.cs) directly into your project\n\n\n## How to use\n1. Add a [CameraViewportRect](Runtime/CameraViewportRect.cs) component to any\n   object with a `RectTransform`\n2. Set the `Camera` property to the camera that should render inside it\n3. Enjoy 🍾\n\n\n## Samples\nThis UPM package has the following sample scene:\n- [RotatingCube](Samples~/RotatingCube/RotatingCubeSample.unity): Simple sample with a rotating cube that appears on a responsive UI","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-camera-viewport-rect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilzoide%2Funity-camera-viewport-rect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-camera-viewport-rect/lists"}