【VR】Leap Motion 官网文档 DisconnectionNotice (未连接通知)

前言

不能不说~  新搭档真心给力!翻译的节奏很嗨。这两篇本人也简单参与了审校,姑且算是合作的吧。

VR热逐渐趋于理智,但软件对VR硬设的探索和发挥依然停留在初始阶段。相对而言,一些VR硬设文档缺乏中文文档,为广大开发者的学习带来阻碍和不便。本系列译文就是在这样的背景下诞生的,而首先推出的是价位上人手可及的 Leap Motion系列。

Leap Motion 的 DisconnectionNotice类会在没有连接时以视觉形式反馈给用户,以便让重新连接。


原译文链接:http://blog.csdn.net/qq_18408937/article/details/47428119


DisconnectionNotice 未连接通知

Displays a notice if the Leap Motion device is not plugged in or the service is not running.

当LeapMotion未连接或者服务为启动时列出通知

 

Attach this script to the game object containing a GUI Texture with the image to display. The asset package Textures folder contains example graphics for both peripheral and embedded Leap Motion controllers.

添加该脚本到含有GUI Texture的游戏对象上用于显示图片。资源包的图片文件夹中含有外设的和内置LeapMotion控制器所使用的示例图片。


class DisconnectionNotice 未连接通知类

Tracks the connection state of the Leap Motion hardware.

跟踪LeapMotion硬件的链接状态。

If the device is unplugged or otherwise not detected, the script fades in a GUITexture object which should communicate the problem to the user.

如果改设备没有插入或者未被检测到,该脚本会渐渐呈现一个GUITexture对象来传达这个问题给用户。


Public Members 公共变量

Texture2D embeddedReplacementImage Texture2D  内置的替换图片

An alternative image to use when the hardware is embedded in a keyboard or laptop.

当硬件内置到键盘或笔记本上时替换该内置图片。


AnimationCurve fade AnimationCurve 渐变

The easing curve. 简易曲线。


float fadeInTime float 渐入时间

The speed to fade the object alpha from 0 to 1.

决定对象透明度从0到1的变化的速度。


float fadeOutTime float 渐出时间

The speed to fade the object alpha from 1 to 0.

决定对象透明度从1到0的变化的速度。


Color onColor Color 主色调

The fully on texture tint color.

纹理整体的主色调。


int waitFrames int 等待帧数

A delay before beginning the fade-in effect.

开始渐入特效前的延迟帧数。


————————————————————————————————————————————


更多参考:

【VR】Leap Motion 官网文档 脚本参考(目录)


(版权声明:本篇为Leap Motion 官网文档译文,版权归Leap Motion 官网所有,图文内容仅供学习使用。)



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值