docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VolumeGizmoDrawer

    Collection of static methods to draw gizmos for volume colliders.

    Inheritance
    object
    VolumeGizmoDrawer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)