資源簡介
Unity3d,MYO肌電臂環二次開發例程(保證好使) 官方環境二次開發 C#語言

代碼片段和文件信息
/******************************************************************************
?*?Copyright?(C)?Leap?Motion?Inc.?2011-2017.?????????????????????????????????*
?*?Leap?Motion?proprietary?and??confidential.?????????????????????????????????*
?*????????????????????????????????????????????????????????????????????????????*
?*?Use?subject?to?the?terms?of?the?Leap?Motion?SDK?Agreement?available?at?????*
?*?https://developer.leapmotion.com/sdk_agreement?or?another?agreement???????*
?*?between?Leap?Motion?and?you?your?company?or?other?organization.???????????*
?******************************************************************************/
using?UnityEngine;
using?UnityEditor;
namespace?Leap.Unity?{
??public?static?class?CorePreferences?{
????private?const?string?ALLOW_CLEAR_TRANSFORM_HOTKEY_KEY?=?“LeapMotion_AllowClearTransformHotkey“;
????private?const?string?ALLOW_GROUP_objectS_HOTKEY_KEY?=?“LeapMotion_AllowGroupobjectsHotkey“;
????public?static?bool?allowClearTransformHotkey?{
??????get?{
????????return?EditorPrefs.GetBool(ALLOW_CLEAR_TRANSFORM_HOTKEY_KEY?defaultValue:?false);
??????}
??????set?{
????????EditorPrefs.SetBool(ALLOW_CLEAR_TRANSFORM_HOTKEY_KEY?value);
??????}
????}
????public?static?bool?allowGroupobjectsHotkey?{
??????get?{
????????return?EditorPrefs.GetBool(ALLOW_GROUP_objectS_HOTKEY_KEY?defaultValue:?false);
??????}
??????set?{
????????EditorPrefs.SetBool(ALLOW_GROUP_objectS_HOTKEY_KEY?value);
??????}
????}
????[LeapPreferences(“Core“?0)]
????private?static?void?drawCorePreferences()?{
??????drawPreferencesBool(ALLOW_CLEAR_TRANSFORM_HOTKEY_KEY?“Clear?Transforms?Hotkey“?“When?you?press?Ctrl+E?clear?out?the?local?position?rotation?and?scale?of?the?selected?transforms.“);
??????drawPreferencesBool(ALLOW_GROUP_objectS_HOTKEY_KEY?“Group?Transforms?Hotkey“?“When?you?press?Ctrl+G?group?all?selected?objects?underneath?a?single?new?object?named?Group.“);
????}
????private?static?void?drawPreferencesBool(string?key?string?label?string?tooltip)?{
??????GUIContent?content?=?new?GUIContent(label?tooltip);
??????bool?value?=?EditorPrefs.GetBool(key?defaultValue:?false);
??????var?newValue?=?EditorGUILayout.Toggle(content?value);
??????if?(newValue?!=?value)?{
????????EditorPrefs.SetBool(key?newValue);
??????}
????}
??}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.????148992??2017-11-17?21:25??Unity5.6.2?LeapTest\.vs\Unity5.6.2?LeapTest\v15\.suo
?????文件????????147??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Dependencies.txt
?????文件????????177??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Dependencies.txt.me
?????文件???????2288??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\CorePreferences.cs
?????文件????????262??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\CorePreferences.cs.me
?????文件??????10275??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\CustomEditorba
?????文件????????262??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\CustomEditorba
?????文件???????6400??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\CustomPropertyDrawerba
?????文件????????263??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\CustomPropertyDrawerba
?????文件????????924??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\EmptyFolderUtility.cs
?????文件????????263??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\EmptyFolderUtility.cs.me
?????文件???????3694??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\LeapHandControllerEditor.cs
?????文件????????178??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\LeapHandControllerEditor.cs.me
?????文件???????1884??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\LeapImageRetrieverEditor.cs
?????文件????????263??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\LeapImageRetrieverEditor.cs.me
?????文件???????1685??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\LeapServiceProviderEditor.cs
?????文件????????262??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\LeapServiceProviderEditor.cs.me
?????文件???????5450??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests\fr
?????文件????????262??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests\fr
?????文件???????1678??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests\HandFactoryTest.cs
?????文件????????262??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests\HandFactoryTest.cs.me
?????文件???????4866??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests\TransformCopyTest.cs
?????文件????????262??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests\TransformCopyTest.cs.me
?????文件????????192??2017-11-17?03:13??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor\Tests.me
?????文件????????192??2017-11-17?03:13??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Editor.me
?????文件??????18651??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\EditorResources\HandTex.png
?????文件???????1866??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\EditorResources\HandTex.png.me
?????文件????????192??2017-11-17?03:13??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\EditorResources.me
?????文件???????2005??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Examples\Attachment?Hands\Attachment?Hands?Example?Blue.mat
?????文件????????208??2017-09-21?03:53??Unity5.6.2?LeapTest\Assets\LeapMotion\Core\Examples\Attachment?Hands\Attachment?Hands?Example?Blue.mat.me
............此處省略1683個文件信息
- 上一篇:C#+SQL數據庫實現學生管理系統
- 下一篇:圖書管理系統(c#+sql2008)
評論
共有 條評論