描述定義為
new PathGraphics(options)
Entity
隨時間移動而形成的路徑的多段線。
Parameters:
options
(Object)
Name | Description |
---|---|
options.show
Property
default true
|
指定路徑可見性的布爾屬性。 |
options.leadTime
Property
|
指定要顯示的對象前面的秒數的屬性。 |
options.trailTime
Property
|
一個屬性,指定要顯示的對象的延遲秒數。 |
options.width
Property
default 1.0
|
以像素為單位指定寬度的數值屬性。 |
options.resolution
Property
default 60
|
一個數字屬性,指定對位置進行采樣時要執行的最大秒數。 |
options.material
MaterialProperty
default Color.WHITE
|
指定用于繪制路徑的材質的屬性。 |
options.distanceDisplayCondition
Property
|
一個屬性,指定此路徑將顯示在與相機的距離處。 |
Members
(readonly) definitionChanged : Event
獲取每當屬性或子屬性更改或修改時引發的事件。
distanceDisplayCondition : Property
獲取或設置
DistanceDisplayCondition
屬性,該屬性指定此路徑將顯示在距相機的距離。
leadTime : Property
獲取或設置指定要顯示對象前面的秒數的屬性。
material : MaterialProperty
獲取或設置指定用于繪制路徑的材質的屬性。
-
Default Value:
Color.WHITE
resolution : Property
獲取或設置屬性,該屬性指定對位置進行采樣時要執行的最大秒數。
-
Default Value:
60
show : Property
獲取或設置用于指定路徑可見性的布爾屬性。
-
Default Value:
true
trailTime : Property
獲取或設置指定要顯示對象的秒數的屬性。
width : Property
獲取或設置以像素為單位指定寬度的數值屬性。
-
Default Value:
1.0
Methods
clone(result) → {PathGraphics}
復制此實例。
Parameters:
將此對象上的每個未分配屬性分配給所提供源對象上相同屬性的值。