### 顯示
```
MyVirtualScene.api.object.icon.set('物體ID','show');
```
<br />
### 隱藏
```
MyVirtualScene.api.object.icon.set('物體ID','hide');
```
<br />
### 切換
```
MyVirtualScene.api.object.icon.set('物體ID','switch');
```
* 顯示的改為隱藏,隱藏的改為顯示
<br />
### 更新
```
MyVirtualScene.api.object.icon.set('物體ID','update',{
'image': {
'type': 'info',
'path': '',
},
'style': {
'type': 'glint',
'width': 50,
'height': 50,
'opacity': 0.7,
'margin_top': '0',
},
'position' : {
'x': 0, 'y': 0, 'z': 40,
},
});
```
* 更新物體的 icon 配置信息,可以隨時對顯示的內容進行調整。
<br />
### 獲取
```
MyVirtualScene.api.object.icon.get('物體ID');
```
* 獲取物體的當前實時 icon 配置信息
<br />
- 序言
- 基礎
- 如何使用
- 目錄結構
- 配置數據
- 結構
- global
- style_lib
- default
- emphasis
- status
- environ
- camera
- ground
- light
- ambient_light
- directional_light
- point_light
- 物體數據
- 結構
- 通用參數
- id
- name
- style
- advgeom
- visible
- status
- param
- property
- scale
- align
- position
- rotation
- label
- infobox
- icon
- linkline
- float
- intersect
- animate
- rotate
- shuttle
- pipeline
- flow
- route
- 多個動畫
- 基礎物體
- 平面 Plane
- 圓平面 Circle
- 環平面 Ring
- 立方體 Cube
- 球體 Sphere
- 圓柱體 Cylinder
- 圓環體 Torus
- 管道 Tube
- 曲面 Spline
- 墻 Wall
- 拔高體 Raise
- 正四面體 Tetrahedron
- 正八面體 Octahedron
- 正二十面體 Icosahedron
- 接口
- 先讀我
- 物體類
- visible
- position
- scale
- rotation
- icon
- label
- infobox
- intersect
- param
- status
- animate
- list
- remove
- add
- 攝像機類
- get
- set
- reset
- auto_rotate
- 聯系