# Gizmos visual aids

# Features

In the process of project development, it is often necessary to assist debugging by drawing line segments, spheres and other graphical components in the scene. Therefore, we provide Gizmos, which can draw basic graphics in developer tools or real machine game scenes. The gray grid lines in the editor scene, the blue outline lines of the selected objects, and the moving tools are all drawn by Gizmos.

# Built-in components

We provide the following types of auxiliary graphics for developers to use

  1. LineGizmo
  2. CircleGizmo
  3. RectGizmo
  4. CubeGizmo
  5. MeshGizmo

# Create and destroy

If the developer wants to draw or revoke the Gizmo, it needs to be achieved through the global static method of the Gizmos class

Function Function
createLineGizmo Create and draw line segments in the scene
createCircleGizmo Create and draw a circle in the scene
createRectGizmo Create and draw a plane in the scene
createCubeGizmo Create and draw a cube in the scene
createMeshGizmo Create and draw a mesh in the scene
removeGizmo Remove a Gizmo from the scene
clearAllGizmos Clear all Gizmos in the scene
点击咨询小助手