使用视图 UI 快速布局组件。在此示例中,我们使用 add()
方法将组件放置在 SceneView 中的指定位置。
1
2
3
4
// places the logo div in the bottom right corner of the view
view.ui.add("logoDiv", "bottom-right");
// places the search widget in the top right corner of the view
view.ui.add(search, "top-right");
其他支持的方法包括 empty()
、find()
、move()
和 remove()
,它们可用于操作视图 UI 中组件的放置。
Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.