UnityAPI翻译——VRDevice

来源:互联网 发布:告白墙源码 编辑:程序博客网 时间:2024/06/06 16:33

最近开始搞虚拟现实了,先翻译了unity的官方的相关API,有错误的地方,希望大家多多指教。


VRDevice

VR设备
class in UnityEngine.VR
命名空间UnityEngine.VR下的类


Description
描述
Contains all functionality related to a VR device.
包含所有VR设备相关的所有功能。
Static Variables
静态参数
family
厂商名称
The name of the family of the loaded VR device.
加载VR设备的厂商名称
isPresent
是否显示
Successfully detected a VR device in working order.
是否成功探测到运行正常的VR设备
model
设备型号
Specific model of loaded VR device.
VR设备具体型号的字符串
Static Functions
静态方法
GetNativePtr
获取本地指针
Native pointer to the VR device structure, if available.
如果可用,返回VR设备结构的本地指针

VRDevice.family

VR设备的属性厂商名称family
public static string family;
静态参数厂商名称
Description
描述
The name of the family of the loaded VR device.
当前加载VR设备的厂商名称
There can be many different devices for a given family.
同一个厂商可以有很多不同的设备

VRDevice.isPresent

VRDevice类的属性是否正常显示
public static bool isPresent;
静态参数是否正常显示
Description
描述
Successfully detected a VR device in working order.
是否能检测到正常运行的VR设备

VRDevice.model

VRDevice类的属性设备型号model
public static string model;
静态参数
Description
描述
Specific model of loaded VR device.
当前加载设备的具体型号

VRDevice.GetNativePtr

VRDevice类的GetNativePtr()方法
public static IntPtr GetNativePtr();
静态方法,无参,返回本地指针
Returns
返回值
IntPtr Native pointer to VR device if available, else 0.
可用返回本地指针,否则返回0
Description
描述
Native pointer to the VR device structure, if available.
若可用,返回VR设备结构的本地指针。
This can be used to obtain more features for a given VR device.
可以用来获取当前VR设备的更多特性。


0 0
原创粉丝点击