官术网_书友最值得收藏!

Input settings

The input settings are part of the Engine section, but I want to discuss it separately from the other editor preferences. This section defines the keyboard, mouse, and gamepad inputs that our game will use, and will come into play in Chapter 2, Programming Using Blueprints. Let's take a look at the inputs that have been provided for our third-person project:

When you create your project, these inputs will automatically be created based on the template you use, but you will naturally want to add more depending on your gameplay. For instance, to add a Use key, you would press the plus sign next to Action Mappings, then change the name from NewActionMapping_0 to Use, and then select a keyboard key for it to use (E is common). Now, when you are creating or modifying your character class, you will be able to use this as an input event (discussed more in Chapter 2, Programming Using Blueprints).

Axis Mappings have an additional setting for scale, since they include gamepad thumbsticks that don't have a strict on/off state. If you look at MoveForward for example, you can see that the backward key (S) also calls the same input event; it just gives it a negative value so the character will move in the opposite direction.

Now that we've customized the editor with our preferences, let's look at how to further expand the engine's capabilities by using plugins.

主站蜘蛛池模板: 五华县| 启东市| 乌拉特前旗| 贵港市| 鹰潭市| 郎溪县| 尚志市| 清水河县| 沙洋县| 康马县| 庆安县| 夏津县| 云浮市| 玉屏| 宣化县| 徐闻县| 北京市| 淄博市| 五指山市| 苗栗市| 凤台县| 嘉禾县| 赫章县| 兴仁县| 乌鲁木齐市| 集安市| 黑龙江省| 乌拉特前旗| 广宗县| 汝南县| 马山县| 滁州市| 嘉义县| 新田县| 阿鲁科尔沁旗| 乌拉特后旗| 宽城| 隆子县| 松溪县| 新源县| 全南县|