显示如何输出所有已连接 VR 设备(控制器和跟踪器)的内部序列号。
# Get all currently connected VR devices
devices = vrDeviceService.getConnectedVRDevices()
# Print name and serial number for all devices
# Note: If a VR device is created in a script before it is connected,
# name or serial number may be empty
for device in devices:
print((device.getName()))
print((device.getSerialNumber()))