docs.unity3d.com
    Show / Hide Table of Contents

    Class GizmoHelpers

    Utility functions related to Gizmos.

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

    Methods

    DrawAxisArrows(Transform, Single)

    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.

    Single size

    Length of each ray.

    DrawWireCubeOriented(Vector3, Quaternion, Single)

    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.

    Single size

    Size of the cube.

    DrawWirePlaneOriented(Vector3, Quaternion, Single)

    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.

    Single size

    Size of the plane.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023