Version: 2017.3

Gizmos

class in UnityEngine

マニュアルに切り替える

説明

シーンビューで、視覚的にデバッグなどの補助を与えるために使用されます。

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次に描画されるギズモのカラーを設定します
matrixギズモを描画するために使用する行列を設定します

Static 関数

DrawCube中心とサイズを持つキューブを描画します
DrawFrustum位置と回転のために設定されている Gizmos.matrix を使用してカメラの錐台を描画します
DrawGUITextureシーンにテクスチャを描画します
DrawIconシーンビューにアイコンを描画します
DrawLine from から to に向かってラインを描画します
DrawMeshメッシュを描画します
DrawRay from から from + direction に向けてレイを描画します
DrawSphere center と radius から球体を描画します
DrawWireCube center と size からキューブを描画します
DrawWireMeshワイヤフレームメッシュを描画します
DrawWireSphere center と radius からワイヤーフレームの球体を描画します
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961