{"repo":"popcron/gizmos","free":true,"listed":false,"github":"https://github.com/popcron/gizmos","clone":"git clone https://github.com/popcron/gizmos.git","description":"Used for drawing runtime gizmos in builds and editor (Unity3D)","language":"C#","stars":580,"topics":["csharp","unity3d"],"license":"MIT","category":"game-templates","readme_excerpt":"Gizmos Used for drawing gizmos in either builds or the editor, as the built in gizmos API by Unity only does so in the editor. With some extra features. Note: Currently doesn't work if a render pipline asset is set in the graphics settings of the project in SRP, if the version of the SRP package is below 7.1.1 Example Camera render filter By default, gizmos will only be drawn to the MainCamera, and the Scene view camera. If you'd like to specify other cameras to also render the gizmos, the Gizmos.CameraFilter predicate allows you to subscribe to a delegate where you can manually specify if a camera should be rendered to or not. Example Custom drawers The ability to add custom drawers is possible. Inherit from the Drawer class and implement the Draw method. To see an example of drawing a line using a custom drawer, look at the LineDrawer.cs file. The Draw method takes in a ref parameter to a Vector3 array as the buffer, and then a params array of objects. The method expects to return the number of points allocated to the buffer. For example, if renderering a single line, allocate the two points at buffer[0] and buffer[1], and return 2. If the number returned is not the same as the amount of points actually used, then the end result of the drawn element will look incorrect and corrupt. API - Gizmos.Line = Draws a line from point a to b. Equivalent to Gizmos.DrawLine - Gizmos.Square = Draws a 2D square in the XY plane - Gizmos.Cube = Draws a 3D cube in world space with orientati","default_branch":null,"files":null,"tree":[],"storefront":"/r/popcron","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/popcron/gizmos/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."}