Skip to content

Path 路径

基本用法

与Line不同的区别在于,路径可以配合贴图实现例如疏散路径示意图之类的功能

如果你希望箭头的长度较长,可以尝试设置repeat来控制长度,当然前提是你的素材也是长箭头

Options

IGeneratePathVertexDataOption

属性名说明类型默认值
width线条宽度number0.1
progress间隔number1
arrow是否绘制箭头booleanfalse
side朝向left|right|bothboth

IBasicLineConstructorOption

继承自IBasicLine

属性名说明类型默认值
points线条拐点合集RTHREE.Vector3[]-

IStandardLine

属性名说明类型默认值
containerWidth容器宽度number-
containerHeight容器高度number-
lineWidth线条宽度number2
isDash是否为虚线booleanfalse
dashSize虚线段长度number.5
gapSize虚线段间距number.25

IStandardConstructorOption

继承自IStandardLine

属性名说明类型默认值
lineColor线条颜色RTHREE.Color0xFFFFFF
points线条拐点合集RTHREE.Vector3[]-

RBasicLine Methods

updateMaterial(options: IBasicLine)

更新线条材质

RStandardLine Methods

updateMaterial(options: IStandardLine)

更新线条材质