自定义Unreal Input System
最近有个需求,角色播发攻击动画的时候,调整攻击位移,和屏蔽用户输入。以便不打断动画。
输入系统的方案就几种:
1 查看本地配置问题XXXInput.ini中的按键绑定,在脚本中添加或者重写绑定的命令。
主要工作量在恢复默认的功能,同时在某些情况下调用我写的功能。
2 使用UE3输入配置文件的Key bind toggle trick技术
配置两个Command
3 利用输入系统的API,GetBind和SetBind动态绑定自己需要的命令,
但是由于默认的SetBind里面调用的SaveConfig函数,如果不想写文件的话,可以自己重写在SetBind函数。我觉得UE3多线程机制应该没有多大影响。
也可以利用PlayerInput.Bindings的Public特性直接修改这个数组里的内容。
4 对于有源码的同学们,可以修改KeyBind结构里的内容,同时修改native源码。
修改源码的时候要注意,不要改了UE3执行输入函数的顺序。简单的修改可以加一个bool变量来标识你的特殊需求。
参考资料http://udn.epicgames.com/Three/InputOutputHome.html
分享到:
相关推荐
Unreal 下著名的技能编辑器扩展工具, 在Unreal 4.20.X版本中完美编译运行。
使用Unreal Engine 开发车辆组装,碰撞,模拟的插件的细节技术
unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程unreal udk 基础教程
Chapter 6, A Particle System and Sound, explains how to add visual and sound effects to your level. Chapter 7, Terrain and Cinematics, shows you how to add the final touches to your level using ...
Create new landscapes and use Unreal’s foliage system Bring characters and creatures to life with the Persona Editor Apply materials and build lighting Integrate and modify audio with the Unreal ...
UnrealEngine-4.27.0-release源码 需要自己用vs编译
虚幻任务系统 用虚幻引擎制作的Quest系统
Unreal script source for Editor package UE1
Unreal Engine 4 Scripting with C++ Cookbook 2016 | ISBN-10: 1785885545 | 431 pages | PDF | 7 MB Key Features A straightforward and easy-to-follow format A selection of the most important tasks and ...
精通Unreal引擎技术.iso
虚幻引擎3(UnrealEngine3)源代码,包含编辑器和引擎部分的源代码。比较完整。
游戏引擎Unreal3.2源代码 游戏引擎Unreal3.2源代码 游戏引擎Unreal3.2源代码 游戏引擎Unreal3.2源代码 游戏引擎Unreal3.2源代码
Unreal 云渲染白皮书.pdf
Unreal算法源论文,代码好像还没公开,google deepmind
Unreal Editor 4.10
Unreal是UNREAL ENGINE 的简写,中文:虚幻引擎 (UNREAL ENGINE)是目前世界最知名授权最广的顶尖游戏引擎,占有全球商用游戏引擎80%的市场份额。 中国首家虚幻技术研究中心在上海成立,该中心由GA国际游戏教育与...
Unreal Engine 4 Scripting with C++ Cookbook willam
Unreal Engine 4 Scripting with C++ Cookbook 英文pdf
Game Development Projects With Unreal Engine Learn to Build Your First Games and Bring Your Ideas to Life Using UE4 and C++ by Hammad Fozi Gonçalo Marques David Pereira Devin Sherry (z-lib.org)