XUISoldier()

new XUISoldier()

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 ""

SetBgDrawColor(bDrawColor)

背景以颜色绘制
Parameters:
Name Type Description
bDrawColor Boolean
Properties:
Name Type Description
BgDrawColor Boolean true

SetCameraPosition(x, y, z)

相机视角
Parameters:
Name Type Description
x Number 左右位移
y Number 垂直方位
z Number 上下位移
Properties:
Name Type Description
CameraPosition Collection [0,2,6]

SetCoordinateSystemVisible(bVisible)

坐标系是否显示
Parameters:
Name Type Description
bVisible Boolean
Properties:
Name Type Description
CoordinateSystemVisible Boolean true

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]

SetSoldierPosition(x, y, z)

士兵3d位置
Parameters:
Name Type Description
x Number 左右位移
y Number 垂直方位
z Number 上下位移
Properties:
Name Type Description
ModelPosition Collection [0,-2,0]

SetSoldierRotation(x, y, z)

士兵旋转
Parameters:
Name Type Description
x Number x轴为中心
y Number y轴为中心
z Number z轴为中心
Properties:
Name Type Description
ModelRotation Collection [0,0,0]