Class GizmoHelpers
Utility functions related to Gizmos.
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public static class GizmoHelpers
Methods
DrawAxisArrows(Transform, Single)
Draw 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)
Declaration
public static void DrawWireCubeOriented(Vector3 position, Quaternion rotation, float size)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
Quaternion | rotation | |
Single | size |
DrawWirePlaneOriented(Vector3, Quaternion, Single)
Declaration
public static void DrawWirePlaneOriented(Vector3 position, Quaternion rotation, float size)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
Quaternion | rotation | |
Single | size |