In this section, we’ll set up the system by going through each of its three core components one by one:

  1. Enabling Enhanced Input
  2. Actor Component - BPAC_Swimming
  3. Animation Blueprint Template - ABT_SwimComponent
  4. Skeleton Socket
  5. BP_SwimmingVolume - Blueprint

Enabling Enhanced Input

Easy Swimming System uses Unreal Engine's Enhanced Input system to handle player inputs. If Enhanced Input is not enabled in your project, the system will not function correctly.

💡 Enhanced Input is enabled by default in most recent versions of Unreal Engine 5, so no additional setup is usually required. If you're using an older version, such as UE5.0, you'll need to follow the steps below to enable and configure it.

Step 1: Enable Enhanced Input plugin

  1. Open Edit → Plugins
  2. Search for Enhanced Input
  3. Make sure the plugin is enabled
  4. Restart the editor if prompted

image.png

Once the editor has restarted, you can set your project to use Enhanced Input Plugin classes instead of the default UE5 input handlers. Go to the Edit dropdown menu and choose Project Settings. From there, locate the Input section (under the Engine heading) and find the Default Classes settings. These will initially contain the standard PlayerInput and InputComponent classes.

image.png

To use Enhanced Input, change these settings to EnhancedPlayerInput and EnhancedInputComponent, respectively.

image.png