您的位置:首页 > 移动开发 > Unity3D

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
静态参数

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

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.
仅仅是左眼视角被镜像。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: