Guia Unreal Engine 5.
5 - Projeto com
Enhanced Input e Blueprint de
Personagem
1. Instalando a Unreal Engine 5.5
1. Baixe o Epic Games Launcher em https://www.unrealengine.com/.
2. Faça login ou crie uma conta.
3. Em "Unreal Engine" > "Library", clique em "+" e selecione a versão 5.5.
4. Clique em "Install" e aguarde a instalação.
2. Criar as Pastas Principais do Projeto
No Content Drawer, crie as seguintes pastas:
- Blueprints/
- Characters/
- Inputs/
- Maps/
- UI/
- Materials/
- Sounds/
- Animations/
3. Configurar Inputs com Enhanced Input
1. Ative o plugin "Enhanced Input" em Edit > Plugins.
2. Crie um Input Mapping Context chamado IMC_Default na pasta Inputs/.
3. Crie Input Actions: IA_Move, IA_Look, IA_Jump, IA_Sprint, IA_Interact.
4. No BP do personagem, use Add Mapping Context no BeginPlay.
5. Em SetupPlayerInputComponent, use Bind Action para conectar inputs a funções.
3.5. Exemplo de Blueprint para Inputs
No Event Graph do BP_PlayerCharacter:
- IA_Move: Conecte o Vector2D a Add Movement Input (Separar eixos X/Y para
Forward/Right).
- IA_Look: Use os eixos para Add Controller Yaw/Pitch Input.
- IA_Jump: Triggered → Jump / Completed → StopJumping.
4. Criar Blueprint do Personagem
1. Crie BP_PlayerCharacter (classe Character) em Blueprints/.
2. Adicione os componentes: Mesh, CameraBoom, Camera.
3. Configure lógica de movimento com os inputs criados.
5. Configurar Game Mode e Player Controller
1. Crie BP_GameMode e BP_PlayerController.
2. No BP_PlayerController, adicione Mapping Context no BeginPlay.
3. Em Project Settings > Maps & Modes, configure:
- GameMode: BP_GameMode
- Default Pawn: BP_PlayerCharacter
- Player Controller: BP_PlayerController
6. Criar o Mapa Inicial
1. Crie o mapa "MainMap" na pasta Maps/.
2. Adicione elementos da cena e salve.
3. Em Project Settings > Maps & Modes > Default Map, selecione "MainMap".
7. Testar o Projeto
1. Compile os Blueprints.
2. Pressione Play e teste os controles.
3. Ajuste velocidades e sensibilidade conforme necessário.
8. Considerações Finais
- Utilize Mapping Contexts diferentes para menus e gameplay.
- Estruture bem as pastas e comente seus Blueprints.
- Expanda com sistemas de combate, HUD ou inventário futuramente.