Version: 2022.1
言語: 日本語

Gizmos

class in UnityEngine

マニュアルに切り替える

説明

Gizmos are used to give visual debugging or setup aids in the Scene view.

All gizmo drawing has to be done in either OnDrawGizmos or OnDrawGizmosSelected functions of the script.
OnDrawGizmos is called every frame. All gizmos rendered within OnDrawGizmos are pickable. OnDrawGizmosSelected is called only if the object the script is attached to is selected.

Static 変数

color次に描画されるギズモのカラーを設定します
exposureSet a texture that contains the exposure correction for LightProbe gizmos. The value is sampled from the red channel in the middle of the texture.
matrixSets the Matrix4x4 that the Unity Editor uses to draw Gizmos.
probeSizeSet a scale for Light Probe gizmos. This scale will be used to render the spherical harmonic preview spheres.

Static 関数

DrawCube中心とサイズを持つキューブを描画します
DrawFrustumDraw a camera frustum using the currently set Gizmos.matrix for its location and rotation.
DrawGUITextureDraw a texture in the Scene.
DrawIconDraw an icon at a position in the Scene view.
DrawLine from から to に向かってラインを描画します
DrawMeshメッシュを描画します
DrawRay from から from + direction に向けてレイを描画します
DrawSphere center と radius から球体を描画します
DrawWireCube center と size からキューブを描画します
DrawWireMeshワイヤフレームメッシュを描画します
DrawWireSphere center と radius からワイヤーフレームの球体を描画します