您的位置:首页 > 其它

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

2015-08-11 21:52 435 查看

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.
开始渐入特效前的延迟帧数。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: