资源简介
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)
相关资源
- Unity 3D Paint in 3D 最新版(1.56)
- unity C# Entitas 1.5.2 框架 带jenny server
- unity ccg kit 0.7 完整package
- Unity3D应用嵌入到WPF应用
- UnityFishWeb.rar
- leapmotion的官方例程c#
- 最新版 Best HTTP v1.11.0.unitypackage
- unity帧同步技术demo
- 固高运动版卡例程C#版
-
Qfr
amework_Unity 游戏框架搭建 第一季 - WinForm嵌入Unity3D并实现交互
- nmodbus官方例程 包括dllvb.net与C#
- Holo UI for UGUI 1.8.unitypackage
- U3D 跳一跳小游戏 源码,整个工程文件
- NGUI: Next-Gen UI 3.12.1
- unity3d小游戏,见缝插针2d
- Unity3D NGUI Next Gen UI 最新版插件
- Iocomp.Net WinForms破解版导入了Dall例程可
- Unity 2D横版冒险跳跃游戏 带源码
- C#语言程序设计(第二版!)全部资源
- Unity 5实战:使用C#和Unity开发多平台游
- ARkit-Unity 2.0版本插件
- unity3d 登录注册界面功能实现 c#
- CreatePDF.rar
- unity3d创意的手机消除游戏源码
- 换枪加缓存池
- Unity+百度人脸识别程序包PC版exe
- Developing 2D Games with Unity
- FFmpeg Unity Bind 3.2.zip
- unity3D赛车游戏项目源代码
评论
共有 条评论