# Gizmos.createLineGizmo

# 函数声明

public static createLineGizmo(start: V3ReadOnly, end: V3ReadOnly): LineGizmo

# 函数参数

参数名 说明
start 线段的起始点
end 线段的终点

# 示例

import engine from "engine";
export default class ExampleClass extends engine.Script{
    // 创建一个起点为(0, 0, 0),终点为(1, 1, 1)的线段Gizmo
    // 默认每个相机都将绘制该Gizmo
    public lineGizmo;

    public onAwake(){
        var start = engine.Vector3.ZERO;
        var end = engine.Vector3.createFromNumber(1, 1, 1);
        this.lineGizmo = engine.Gizmos.createLineGizmo(start, end);
    }

}