Class VolumeGizmoDrawer
Collection of static methods to draw gizmos for volume colliders.
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public static class VolumeGizmoDrawer
Methods
DrawBoxCollider(Transform, Vector3, Vector3)
Draws a box collider gizmo.
Declaration
public static void DrawBoxCollider(Transform transform, Vector3 center, Vector3 size)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | Transform of the box collider. |
Vector3 | center | Center position of the box collider. |
Vector3 | size | Size of the box collider. |
DrawMeshCollider(Transform, Mesh)
Draws a mesh collider gizmo.
Declaration
public static void DrawMeshCollider(Transform transform, Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | Transform of the mesh collider. |
Mesh | mesh | Mesh to draw. |
DrawSphereCollider(Transform, Vector3, float)
Draws a sphere collider gizmo.
Declaration
public static void DrawSphereCollider(Transform transform, Vector3 center, float radius)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | Transform of the sphere collider. |
Vector3 | center | Center position of the sphere collider. |
float | radius | Radius of the sphere collider. |