资源简介
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)
相关资源
- C#更改Windows防火墙设置实例程序
- C# TcpListener 例程(源码)
- C#实例程序100例子
- unity+Socket+KCP+Protobuf的Unity局域网联机
- AssetStudio V0.16.0 源代码 使用VS2019
- 周立功CAN通用上位机例程(C#)
- c# udp通信例程(上位控制程序)
- Unity摄像机分辨率自适应设计尺寸脚本
- unity 2d-extras-master插件
- polyvav2D-1.5.2_BehaviorDesigner.unitypackage
- unity读取Excel
- 软键盘(Package_KeyBoard.unitypackage)
- unity5圣典中文API手册v0.02.chm
- Unity 房间游览
- 百塞尔曲线粒子插件(.unitypackage)
- 皮带传送、齿轮unity
- unity3d脚本学习教程
- Unity日历插件
- Atlas通信例程(拧紧枪)
- Unity5实战:使用C#和Unity开发多平台游
- C#凌华运动控制卡例程
- Unity5.0切水果游戏C#
- Unity2D小游戏——炸弹人类似qq堂的小
- 俄罗斯方框UNITY项目案例包含代码
- unity 键鼠控制摄像机移动 脚本
- Unity通过TCP接收服务端数据
- Unity和C#实现TCP网络聊天
- 愤怒的小鸟unity3d279320
- Unity in Action: Multiplatform Game Developmen
- unity开发贪吃蛇
评论
共有 条评论