docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GizmoHelpers

    Utility functions related to Gizmos.

    Inheritance
    object
    GizmoHelpers
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public static class GizmoHelpers

    Methods

    DrawAxisArrows(Transform, float)

    Draws world space standard basis vectors at transform.

    Declaration
    public static void DrawAxisArrows(Transform transform, float size)
    Parameters
    Type Name Description
    Transform transform

    The Transform to represent.

    float size

    Length of each ray.

    DrawWireCubeOriented(Vector3, Quaternion, float)

    Draws oriented wire cube.

    Declaration
    public static void DrawWireCubeOriented(Vector3 position, Quaternion rotation, float size)
    Parameters
    Type Name Description
    Vector3 position

    Position of the cube.

    Quaternion rotation

    Rotation of the cube.

    float size

    Size of the cube.

    DrawWirePlaneOriented(Vector3, Quaternion, float)

    Draws oriented wire plane.

    Declaration
    public static void DrawWirePlaneOriented(Vector3 position, Quaternion rotation, float size)
    Parameters
    Type Name Description
    Vector3 position

    Position of the plane.

    Quaternion rotation

    Rotation of the plane.

    float size

    Size of the plane.

    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)