{"id":26483941,"url":"https://github.com/vrlabs/isrendering-detection","last_synced_at":"2025-03-20T04:59:11.677Z","repository":{"id":110874896,"uuid":"607420780","full_name":"VRLabs/IsRendering-Detection","owner":"VRLabs","description":"Be able to trigger things when players look at something","archived":false,"fork":false,"pushed_at":"2024-12-04T20:39:48.000Z","size":29154,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-04T21:34:20.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/VRLabs.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":"2023-02-27T23:53:26.000Z","updated_at":"2024-12-04T20:39:52.000Z","dependencies_parsed_at":"2023-09-24T02:06:30.046Z","dependency_job_id":"b756470f-322f-4fb3-9052-d1d50a49122a","html_url":"https://github.com/VRLabs/IsRendering-Detection","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRLabs%2FIsRendering-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRLabs%2FIsRendering-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRLabs%2FIsRendering-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRLabs%2FIsRendering-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VRLabs","download_url":"https://codeload.github.com/VRLabs/IsRendering-Detection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554067,"owners_count":20471173,"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":"2025-03-20T04:59:11.212Z","updated_at":"2025-03-20T04:59:11.672Z","avatar_url":"https://github.com/VRLabs.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# IsRendering Detection\n\n[![Generic badge](https://img.shields.io/github/downloads/VRLabs/IsRendering-Detection/total?label=Downloads)](https://github.com/VRLabs/IsRendering-Detection/releases/latest)\n[![Generic badge](https://img.shields.io/badge/License-MIT-informational.svg)](https://github.com/VRLabs/IsRendering-Detection/blob/main/LICENSE)\n[![Generic badge](https://img.shields.io/badge/Quest-Compatible-green?logo=Meta)](https://img.shields.io/badge/Quest-Compatible-green?logo=Meta)\n[![Generic badge](https://img.shields.io/badge/Unity-2022.3.22f1-lightblue?logo=Unity)](https://unity.com/releases/editor/whats-new/2022.3.22)\n[![Generic badge](https://img.shields.io/badge/SDK-AvatarSDK3-lightblue.svg)](https://vrchat.com/home/download)\n\n[![Generic badge](https://img.shields.io/discord/706913824607043605?color=%237289da\u0026label=DISCORD\u0026logo=Discord\u0026style=for-the-badge)](https://discord.vrlabs.dev/)\n[![Generic badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dvrlabs%26type%3Dpatrons\u0026style=for-the-badge)](https://patreon.vrlabs.dev/)\n\nSets an \"IsRendering\" parameter to true when being looked at\n\n![IsRendering](https://github.com/VRLabs/IsRendering-Detection/assets/76777936/c9e3c459-1d80-4d6f-9a83-bacfac26c68d)\n\n### ⬇️ [Download Latest Version](https://github.com/VRLabs/IsRendering-Detection/releases/latest)\n\n### 📦 [Add to VRChat Creator Companion](https://vrlabs.dev/packages?package=dev.vrlabs.isrendering-detection)\n\n\u003c/div\u003e\n\n---\n\n## How it works\n\n* The prefab contains a sub-animator, a sender, a receiver, and a renderer.  \n* The sub-animator constantly animates the sender on, setting ``IsRendering`` to true.  \n* When the renderer is not in view, the sub-animator stops running and will no longer animate the sender on.  \n* The main-animator can then animate the sender off, setting ``IsRendering`` to false.\n\n## Install guide\n\nhttps://github.com/VRLabs/IsRendering-Detection/assets/76777936/b51ac145-17a8-47eb-acbf-883242073b6b\n\n* Merge the Animator Controller ``IsRendering FX`` to your own FX Controller, using the [Avatars 3.0 Manager](https://github.com/VRLabs/Avatars-3.0-Manager) tool.\n* Drag \u0026 Drop the ``IsRendering Detection`` prefab into the base of your Hierarchy.\n* Right click and unpack the prefab, then drag \u0026 drop it onto your avatar.\n* Expand the prefab hierarchy and find ``Culling Animator`` -\u003e ``Renderer``.\n* Modify the bounds of the renderer to fit the view target such as your avatar.\n\n\u003e [!NOTE]  \n\u003e When building for Quest, you will have to remove unsupported components and shaders\n\n## How to use\n\n* Add the ``RenderingDetection/IsRendering`` bool parameter to any of your Playable Layers. The value will be ``True`` when ``Renderer`` is in view, and false when outside of view.\n  * You can use this bool to build your own systems in your FX Controller.\n* In the prefab's hierarchy, the ``IsRendering Container`` is enabled when in view. ``IsNotRendering Container`` is enabled when not in view.\n  * You can put your own objects into the containers to show or hide them accordingly\n  * The containers include a cube and sphere for previewing and confirming that the system works; feel free to delete them.  \n\n## Performance stats\n\n```c++\nContact Receivers:  1\nContact Senders:    1\nFX Animator Layers: 1\nSkinned Renderers:  1\nSub Animators:      1\n```\n\n## Hierarchy layout\n\n```html\nIsRendering Detection\n|-IsRendering Container\n|  |-Cube\n|-NotRendering Container\n|  |-Sphere\n|-Culling Animator\n|  |-Sender\n|  |-Receiver\n|  |-Renderer\n```\n\n## Contributors\n\n* [hfcRed](https://github.com/hfcRed)  \n* [Dreadrith](https://github.com/Dreadrith)\n\n## License\n\nIsRendering Detection is available as-is under MIT. For more information see [LICENSE](https://github.com/VRLabs/IsRendering-Detection/blob/main/LICENSE).\n\n​\n\n\u003cdiv align=\"center\"\u003e\n\n[\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/VRLabs.png\" width=\"50\" height=\"50\"\u003e](https://vrlabs.dev \"VRLabs\")\n\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png\" width=\"10\"\u003e\n[\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/Discord.png\" width=\"50\" height=\"50\"\u003e](https://discord.vrlabs.dev/ \"VRLabs\")\n\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png\" width=\"10\"\u003e\n[\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/Patreon.png\" width=\"50\" height=\"50\"\u003e](https://patreon.vrlabs.dev/ \"VRLabs\")\n\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png\" width=\"10\"\u003e\n[\u003cimg src=\"https://github.com/VRLabs/Resources/raw/main/Icons/Twitter.png\" width=\"50\" height=\"50\"\u003e](https://twitter.com/vrlabsdev \"VRLabs\")\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrlabs%2Fisrendering-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvrlabs%2Fisrendering-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrlabs%2Fisrendering-detection/lists"}