描述定义为
Entity
随时间移动的路径的多段线。Name | Type | Description |
---|---|---|
options |
PathGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
readonly definitionChanged : Event
获取每当更改或修改属性或子属性时引发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition
属性,该属性指定将显示此路径的距离。leadTime : Property|undefined
获取或设置属性,该属性指定要显示的对象前面的秒数。
material : MaterialProperty
获取或设置属性,该属性指定用于绘制路径的材质。
-
Default Value:
Color.WHITE
resolution : Property|undefined
获取或设置属性,该属性指定采样位置时要执行的最大步进秒数。
-
Default Value:
60
show : Property|undefined
获取或设置用于指定路径可见性的布尔属性。
-
Default Value:
true
trailTime : Property|undefined
获取或设置属性,该属性指定要显示的对象后面的秒数。
width : Property|undefined
获取或设置以像素为单位指定宽度的数值属性。
-
Default Value:
1.0
Methods
clone(result) → PathGraphics
复制此实例。
Name | Type | Description |
---|---|---|
result |
PathGraphics | optional 要将结果存储到的对象。 |
Returns:
修改后的结果参数或新实例(如果未提供)。
将此对象上的每个未指定属性指定给值
在提供的源对象上具有相同的属性。
Name | Type | Description |
---|---|---|
source |
PathGraphics | 要合并到此对象中的对象。 |
Type Definitions
PathGraphics构造函数的初始化选项
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定路径可见性的布尔属性。 |
leadTime |
Property | number |
<optional> |
指定要在前面显示的对象的秒数。 | |
trailTime |
Property | number |
<optional> |
指定要显示的对象后面的秒数的属性。 | |
width |
Property | number |
<optional> |
1.0 | 以像素为单位指定宽度的数值属性。 |
resolution |
Property | number |
<optional> |
60 | 一个数值属性,指定采样位置时要执行的最大步进秒数。 |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | 指定用于绘制路径的材质的属性。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定此路径将显示在距相机的距离。 |