12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 3111|回复: 13
打印 上一主题 下一主题

[插件资源] Easy Input 1.4

[复制链接]
ZackD    

715

主题

22

听众

4万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
26224
精华
17

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2014-11-1 23:20:57 |只看该作者 |倒序浏览

Snap13.jpg

Requires Unity 4.5.1 or higher.

Easy Input makes input handling...well, easy.

With Easy Input, you have access to advanced information like how long a button has been pressed and double-click support for all keys and buttons. You can even setup actions that can be triggered by any number of inputs to simplify game logic.

Not only is it super simple to grab user input information, but it simplifies the process of setting up and supporting the Xbox controller across platforms too.

Components Include:
* Core classes to manage the input
* Unity InputManager asset (as a zip)
* Sample scene

Features Include:
* Action alias support with multiple inputs
* Action alias support with helpers (ie 'Alt + T')
* Ability to change input mappings at run-time
* Xbox controller support for Windows and Mac
* Advanced info for all keys and buttons:
-Time pressed & elapsed ‘pressed’ time
-Time released & elapsed ‘released’ time
-Double-press
-Toggle
* Simple access to mouse states
* Simple access to keyboard states
* Simple access to Xbox controller states
* Complete code base to use as-is or modify
* Simplified setup process

Usage:
Setting up an Action Alias is super simple. Just add something like this:

InputManager.AddAlias("Jump", EnumInput.SPACE);

InputManager.AddAlias("Jump", EnumInput.GAMEPAD_0_BUTTON);

InputManager.AddAlias("Jump", EnumInput.MOUSE_RIGHT_BUTTON);

Then, test for a jump using this:

if (InputManager.IsJustPressed("Jump"))
{
// Jump
}

Easy Input v1.4 (Sep 02, 2014).rar

1.03 MB, 阅读权限: 10, 下载次数: 46

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

hyui    

1

主题

2

听众

6671

积分

高级设计师

Rank: 6Rank: 6

纳金币
2715
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2014-11-2 01:33:00 |只看该作者
Great share thanks 1
回复

使用道具 举报

0

主题

1

听众

602

积分

初级设计师

Rank: 3Rank: 3

纳金币
0
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2014-11-2 11:13:33 |只看该作者
Great share thanks
回复

使用道具 举报

0

主题

2

听众

4092

积分

中级设计师

Rank: 5Rank: 5

纳金币
530
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2014-11-2 11:27:00 |只看该作者
Great share thanks
回复

使用道具 举报

115

主题

3

听众

5676

积分

高级设计师

Rank: 6Rank: 6

纳金币
7268
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2014-11-2 17:13:56 |只看该作者
Thanks for sharing this one !
回复

使用道具 举报

33

主题

1

听众

2680

积分

中级设计师

Rank: 5Rank: 5

纳金币
559
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

6#
发表于 2014-11-2 17:59:56 |只看该作者
good share
回复

使用道具 举报

0

主题

1

听众

2286

积分

中级设计师

Rank: 5Rank: 5

纳金币
0
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2014-11-2 21:54:27 |只看该作者
nice sharing
回复

使用道具 举报

0

主题

2

听众

6150

积分

高级设计师

Rank: 6Rank: 6

纳金币
62
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

8#
发表于 2014-11-3 14:22:27 |只看该作者
Thanks for sharing!
回复

使用道具 举报

16

主题

1

听众

1万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
3
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2014-11-6 14:53:06 |只看该作者
不错,支持一下
回复

使用道具 举报

0

主题

3

听众

126

积分

设计实习生

Rank: 2

纳金币
18
精华
0

最佳新人

10#
发表于 2014-12-4 11:33:34 |只看该作者
好东西,必须赞一个
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-9-20 21:41 , Processed in 0.176204 second(s), 34 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部