"VR" Leap Motion Official document Disconnectionnotice (not connected notifications)

Source: Internet
Author: User

Objective

Must say ~ new partner sincerely to force! The rhythm of translation is very hi. These two articles I also simply participated in the review, just to be considered as co-operation.

VR heat gradually becomes rational, but the software's exploration and exertion of VR hard setting still stays in the initial stage. Comparatively speaking, some VR hard-set documents lack Chinese documents, which hinder and inconvenience the learning of the vast number of developers. The translation of this series was born in this context, and the first is the Leap Motion series, which is available at a price level.

The Disconnectionnotice class of Leap Motion is visually fed back to the user when there is no connection in order to allow reconnection.


Link to original translation: http://blog.csdn.net/qq_18408937/article/details/47428119


DisconnectionnoticeNo connection Notifications

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

When the leapmotion is not connected or the service is started, the notification is listed

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.

Add the script to the game object containing the GUI texture to display the picture. The picture folder of the resource bundle contains sample pictures used by peripherals and built-in leapmotion controllers.


Class disconnectionnotice not connected notification classes

Tracks the connection state of the Leap Motion hardware.

Track the link state of the leapmotion hardware.

If the device is unplugged or otherwise isn't detected, the script fades in a Guitexture object which should communicate the Problem to the user.

If the device is not plugged in or is not detected, the script will gradually present a Guitexture object to convey the problem to the user.


Public Variables

texture2d embeddedreplacementimage texture2d built-in replacement picture

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

Replace the built-in picture when the hardware is built into the keyboard or notebook.


Animationcurve fade Animationcurve gradient

The easing curve. Simple curve.


float fadeintime float fade in time

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

Determines the speed at which object transparency changes from 0 to 1.


float fadeouttime float fade out time

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

Determines the speed at which object transparency changes from 1 to 0.


Color onColor color main tint

The fully on texture tint color.

The main hue of the overall texture.


int waitframes int wait frame number

A delay before beginning the fade-in effect.

The number of delay frames before starting the fade-in effect.


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


For more information:

"VR" Leap Motion Official Document Script reference (directory)


(Copyright notice: This is a translation of the Leap Motion website document, all rights reserved by the Leap Motion website, and the text content is for learning only.) )



"VR" Leap Motion Official document Disconnectionnotice (not connected notification)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.