基础
更新时间:2021-06-18
GlobalField
此类描述json全局字段(1 开启,0 关闭)
Fields | |
---|---|
bool | cameraDefaultLookAt指定相机的默认朝向(适用:天空盒) |
bool | imuRelayCtrlWhenTrackLost当track类跟丢后IMU继续 |
bool | nodeList 节点列表 |
bool | showImmediatelyGlobal 非Track类case需开启 |
bool | showOffscreenGuidance 配置模型丢失引导箭头 |
bool | userInteraction 用户交互 |
Public methods | |
---|---|
Demo | AllGlobalFieldDemo()所有json全局字段示例 |
AllGlobalFieldDemo
所有json全局字段示例 [number:0 关闭,1 开启]
sample:
{
"showImmediately": 0,
"showOffscreenGuidance": 0,
"imuRelayCtrlWhenTrackLost": 0,
"cameraDefaultLookAt":
{
"eyePos": "768,0,1536",
"centerPos": "0,0,0",
"upDirection": "0,1,0"
},
"userInteraction":
{
},
"nodeList":
[
{
"name":"camera",
...
},
{
"name":"light",
...
},
{
"name":"pod",
...
}
]
}
cameraDefaultLookAt
version 9
指定相机的默认朝向(适用:天空盒)
sample:
"cameraDefaultLookAt":
{
"eyePos": "768,0,1536",
"centerPos": "0,0,0",
"upDirection": "0,1,0"
},
imuRelayCtrlWhenTrackLost
version 9
当track类跟丢后IMU继续
sample:
详见:AllGlobalFieldDemo()
nodeList
version 9
节点列表
sample:
详见:JSON文档 Camera、Light、POD、Video、Plane、FramePicture、Material、Skybox、Particle类
showOffscreenGuidance
version 9
配置模型丢失引导箭头
sample:
详见:AllGlobalFieldDemo()
userInteraction
version 9
用户交互
sample:
详见:Json文档userInteraction类
showImmediatelyGlobal
version 8
非Track类case需开启
sample:
详见:AllGlobalFieldDemo()version