XUIThreeChinaMap()

Methods

SetBackgroundColor(strColor)

设置背景颜色
Parameters:
Name Type Description
strColor String 背景颜色
Properties:
Name Type Description
BackgroundColor Color ""

SetBackgroundImage(strImagePath)

设置背景图片
Parameters:
Name Type Description
strImagePath ImageProp 背景图片路径
Properties:
Name Type Description
BackgroundImagePath ImageProp "bgwz/XUIThreeChinaMap/images/shouye_bg.png"

SetCameraPosition(nX, nY, nZ)

调整摄像机位置
Parameters:
Name Type Description
nX Number 按X轴位移
nY Number 按Y轴位移
nZ Number 按Z轴位移
Properties:
Name Type Description
CameraPosition Collection [100,10,100]

SetCoordinateSystemVisible(bVisible)

控制辅助坐标系显示
Parameters:
Name Type Description
bVisible Boolean
Properties:
Name Type Description
CoordinateSystemVisible Boolean true

SetGltfModel(strGltfModelPath)

设置GLTF模型路径
Parameters:
Name Type Description
strGltfModelPath String 模型路径

SetLightColor(strColor)

调整灯光颜色
Parameters:
Name Type Description
strColor String 灯光颜色
Properties:
Name Type Description
LightColor Color "0xff444444"

SetModelPosition(nX, nY, nZ)

调整模型位置
Parameters:
Name Type Description
nX Number 按X轴位移
nY Number 按Y轴位移
nZ Number 按Z轴位移
Properties:
Name Type Description
ModelPosition Collection [0,0,0]

SetModelRotationSpeed(nSpeedX, nSpeedY, nSpeedZ)

调整模型旋转速度
Parameters:
Name Type Description
nSpeedX Number x轴为中心
nSpeedY Number y轴为中心
nSpeedZ Number z轴为中心
Properties:
Name Type Description
ModelRotationSpeed Collection [0,0,0]

SetModelScale(nScaleX, nScaleY, nScaleZ)

调整模型大小
Parameters:
Name Type Description
nScaleX Number x轴方向
nScaleY Number y轴方向
nScaleZ Number z轴方向
Properties:
Name Type Description
ModelScale Collection [1,1,1]