Unreal中Input的设定
来源:互联网 发布:云锦东方 知乎 编辑:程序博客网 时间:2024/04/30 01:13
首先在编辑器中,Settting->ProjectSettings->Input中设置
然后代码的
// Called to bind functionality to inputvoid AAvatar::SetupPlayerInputComponent(class UInputComponent* InputComponent){Super::SetupPlayerInputComponent(InputComponent); InputComponent->BindAxis("Forward", this, &AAvatar::MoveForward); InputComponent->BindAxis("Strafe", this, &AAvatar::MoveForward);}
void AAvatar::MoveForward(float amount){ if(Controller && amount) { FVector fwd = GetActorForwardVector(); AddMovementInput(fwd, amount); }}void AAvatar::MoveRight(float amount){ if(Controller && amount) { FVector right = GetActorRightVector(); AddMovementInput(right, amount); }}
0 0
- Unreal中Input的设定
- destoon中隐藏input框的值的设定
- input file的CSS设定
- 关于input File的设定~
- Unreal 中 Actor与Pawn的区别
- asp中input标签date属性默认值设定
- UnReal中建立线程
- Maven中代理服务器的设定
- java中时区的设定
- 编程中无穷大的设定
- 编程中无穷大的设定
- Unreal 入门-VR 游戏中需要注意的事情
- input-color与input-checkbox元素通过jquery获取值以及设定值(input属性的取值与设定)
- Unreal引擎的历史
- Unreal里的动画
- Unreal里的输入
- unreal 的初步认识
- input placeholder文字设定样式
- java 自己实现字符串转整数
- iOS开发者皆知的十大Controller
- 单例模式
- C语言进阶-第一周:作业01
- EasyUI 整理
- Unreal中Input的设定
- python做的http代理比对实际与预期的json值------------(3)
- Linux 下安装fcitx中文输入法
- Xcode 快捷键
- openstack 在cpu型号不同, 虚拟机热迁移失败,
- IPC主题二之信号量
- linux查看及修改文件权限以及相关
- Mysql 大数据量高并发的数据库优化
- Activiti工作流的环境配置