Environment.setLicensePath("$dataPath")
Environment.setTemporaryPath("$dataPath/SuperMap/Temp/")
Environment.setWebCacheDirectory("$dataPath/SuperMap/WebCache/")
Environment.initialization(this)
binding = DataBindingUtil.setContentView(this,R.layout.activity_main)
binding.scenecontrol.sceneControlInitedComplete {
sceneServicesList = SceneServicesList()
val load = sceneServicesList.load(iserverUrl)
scene = binding.scenecontrol.scene
if (load){
scene.open(iserverUrl,"nanxi")
}
}
加载场景:
视频链接:https://alist.youngkingdom.top/host/WeChat_20221130174446.mp4