{"repo":"pschraut/UnityUICulling","free":true,"listed":false,"github":"https://github.com/pschraut/UnityUICulling","clone":"git clone https://github.com/pschraut/UnityUICulling.git","description":"UI Culling for Unity allows to trigger OnBecameVisible & OnBecameInvisible events on uGUI widgets.","language":"C#","stars":52,"topics":["gamdev","ugui","unity3d","unity3d-gui","unity3d-plugin"],"license":"MIT","category":"game-templates","readme_excerpt":"UI Culling for Unity This package provides a Component to trigger OnBecameVisible / OnBecameInvisible magic-methods and events, when a uGUI widget enters and exits a specific RectTransform. These events are often useful to toggle expensive logic. For example to disable a Camera that renders to a RenderTexture to display animated 3D characters in the UI, but was moved outisde the visible area of a ScrollView. uGUI doesn't trigger the OnBecameVisible and OnBecameInvisible events on widgets. Unity Technologies was asked to implement it, but it seems they didn't entirely implement it yet, see here. Video Below you can find a YouTube video where I explain what the can be used for. UICullingBehaviour Component The Component is used to trigger these OnBecameVisible and OnBecameInvisible events for uGUI widgets. Property Description ---------- --------------- A reference to a RectTransform whose rectangle is used to test whether it's inside the , in which case the Rect is considered visible. Only spatial checks are performed, alpha/transparency isn't considered. A reference to a RectTransform that represents the viewport, for example the visible area of a ScrollView. See above description. Unity features the OnBecameVisible and OnBecameInvisible magic-methods. This property allows you to call them. will perform a GameObject.SendMessage on the gameObject where the UICullingBehaviour is added to. will perform a GameObject.BroadcastMessage on the gameObject where the UICullingBehaviour ","default_branch":null,"files":null,"tree":[],"storefront":"/r/pschraut","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pschraut/UnityUICulling/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}