UnityAPI翻译——VRSettings
2015-12-02 11:10
537 查看
最近开始搞虚拟现实了,先翻译了unity的官方的相关API,有错误的地方,希望大家多多指教。
VRSettings
VR设置类
class in UnityEngine.VR
命名空间UnityEngine.VR下的类
Description
描述
Global VR related settings.
VR相关的全局设置
Static Variables
静态参数
VRSettings.enabled
VRSettings的enabled属性
public static bool enabled;
静态参数
Description
描述
Globally enables or disables VR for the application.
当前应用全局启用或禁用VR设备
When enabled, VR output is automatically mirrored to the main display. The main window is still controlled by Screen and related APIs.
启用时,VR输出自动镜像到主显示场景。主显示窗口仍然受Screen窗口和相关的API控制。
VRSettings.loadedDevice
VRSettings类的loadedDevice属性
public static
VR.VRDeviceType loadedDevice;
静态参数
Description
描述
Type of VR device that is currently in use.
当前使用的VR设备类型。
You can set this to the desired VR device and it will be loaded. Note that if a VR device was already loaded, a restart may be forced.
你可以设置所需的设备类型然后加载该类型的设备。注意:如果VR设备已经被加载的话,将强行重新加载。
VRSettings.renderScale
VRSettings类的属性renderScale
public static float renderScale;
静态参数
Description
描述
Controls the texel:pixel ratio before lens correction, trading performance for sharpness.
控制像素大小:长度修正前的像素比和锐度表现
Eye textures are allocated to match the largest value encountered at runtime. If the value increases beyond this, eye textures are re-allocated. If the value decreases, viewport scaling is used.
运行状态下,眼睛纹理会匹配运行时出现的最大值。如果这个值增长到高于最大值,眼睛纹理将会被重新分配,如果这个值在减少,则缩小视口。
VRSettings.showDeviceView
VRSettings类的属性showDeveiceView
public static bool showDeviceView;
静态参数
Description
描述
Mirror what is shown on the device to the main display, if possible.
如果可用的话,镜像复制主窗口的显示内容。
Only the left eye is mirrored.
仅仅是左眼视角被镜像。
VRSettings
VR设置类
class in UnityEngine.VR
命名空间UnityEngine.VR下的类
Description
描述
Global VR related settings.
VR相关的全局设置
Static Variables
静态参数
enabled 是否启用 | Globally enables or disables VR for the application. 在当前应用中全局启用或禁用VR设备 |
loadedDevice 已加载的设备类型 | Type of VR device that is currently in use. 当前使用中的VR设备类型 |
renderScale 渲染大小 | Controls the texel:pixel ratio before lens correction, trading performance for sharpness. 控制像素大小:长度修正前的像素比和锐度表现 |
showDeviceView 显示设备预览 | Mirror what is shown on the device to the main display, if possible. 可用的话,在屏幕上镜像显示设备中会出现的场景 |
VRSettings的enabled属性
public static bool enabled;
静态参数
Description
描述
Globally enables or disables VR for the application.
当前应用全局启用或禁用VR设备
When enabled, VR output is automatically mirrored to the main display. The main window is still controlled by Screen and related APIs.
启用时,VR输出自动镜像到主显示场景。主显示窗口仍然受Screen窗口和相关的API控制。
VRSettings.loadedDevice
VRSettings类的loadedDevice属性
public static
VR.VRDeviceType loadedDevice;
静态参数
Description
描述
Type of VR device that is currently in use.
当前使用的VR设备类型。
You can set this to the desired VR device and it will be loaded. Note that if a VR device was already loaded, a restart may be forced.
你可以设置所需的设备类型然后加载该类型的设备。注意:如果VR设备已经被加载的话,将强行重新加载。
VRSettings.renderScale
VRSettings类的属性renderScale
public static float renderScale;
静态参数
Description
描述
Controls the texel:pixel ratio before lens correction, trading performance for sharpness.
控制像素大小:长度修正前的像素比和锐度表现
Eye textures are allocated to match the largest value encountered at runtime. If the value increases beyond this, eye textures are re-allocated. If the value decreases, viewport scaling is used.
运行状态下,眼睛纹理会匹配运行时出现的最大值。如果这个值增长到高于最大值,眼睛纹理将会被重新分配,如果这个值在减少,则缩小视口。
VRSettings.showDeviceView
VRSettings类的属性showDeveiceView
public static bool showDeviceView;
静态参数
Description
描述
Mirror what is shown on the device to the main display, if possible.
如果可用的话,镜像复制主窗口的显示内容。
Only the left eye is mirrored.
仅仅是左眼视角被镜像。
相关文章推荐
- UnityAPI翻译——VRDevice
- UnityAPI翻译——InputTracking
- Unity 射线
- Unity3d 资源断点下载
- 【转】将图集切割成单个单个的图片
- Unity3D asset bundle 格式简析
- Unity三维坐标系和编辑器简介
- 小试Unity中OBJ和Scene打包Bundle与加载--wondows平台下
- 不用Unity库,自己实现.NET轻量级依赖注入
- 使用Unity3D的50个技巧:Unity3D最佳实践
- Unity3D跨平台时partial分部方法的使用
- Unity3D中世界坐标转换到NGUI坐标
- Unity客户端模块划分
- unity资源加载
- unity协程二
- unity协程
- Unity3D 碰撞检测的条件和相关组件
- Unity3d 5.0破解步骤
- Unity给力插件之ShaderForge(一)
- unity 游戏公告跑马灯循环播放的效果