This guide explains how to create and customize a player character for your YOM stream. It covers using YOM’s pre-built character or creating your own, understanding existing functionality, and how to modify or extend character features.
Step 1: Create Your Player Character
- Create a New Blueprint:
- Right-click in the Content Browser
- Select “Blueprint Class”
- Search for “Yom_BP_ThirdPersonCharacter” to use YOM’s existing character framework
- Assign the Player Character:
- After creating your blueprint, assign it as the player character for your project
Step 2: Understand Yom_BP_ThirdPersonCharacter
Yom_BP_ThirdPersonCharacter includes:
- Movement controls (WASD keys)
- Interaction system (E key, requires BP_Interact interface)
- Camera movement (third-person and first-person)
- Camera switching (Q key)
- Crouching (C key)
- Jumping (Spacebar)
- Walking/Running toggle (Left Shift)
- Touch support for mobile devices
- Customizable settings (walk/run speed, starting view)
Step 3: Modify Functionality
To customize Yom_BP_ThirdPersonCharacter:
- Override the function you want to change
- To add functionality:
- Call the parent function
- Add your custom logic
- To remove functionality:
- Override the function
- Leave it empty
- Do not call the parent function
Note: Overriding preserves changes during SDK updates
Step 4: Manage Controls
Default controls use Unreal’s Enhanced Input System and are mapped to a controls customization modal that end-users can alter from within the stream:
- To modify:
- Create your own “InputMappingContext” in the content folder
- Add required defaults
- Create new key mappings for your project
Caution: Direct changes to default controls may be overwritten by SDK updates
Result
Following these steps allows you to create, customize, and manage your player character while leveraging YOM’s existing functionality and maintaining compatibility with future updates.