Setting Up SGPawn

Depening on the Unreal Engine version and your project's type and configuration, you might be able to set SGPawn as the Default Pawn Class by navigating to Project Settings > Project > Maps & Modes > Default Modes > Selected GameMode > Default Pawn Class. However, regardless of the engine version or project type and configuration, you can always configure this by opening your Default GameMode and setting the Default Pawn Class directly from there. Once set, click on the Compile button and save your game mode Blueprint asset.

Setting Up SGPawn - Setting the default class SGPawn

tip

For greater control and customization, consider extending the SGPawn.

caution

Setting SGPawn or a subclass of it as the Default Pawn Class without setting SGPlayerController or a subclass of it as the default Player Controller Class will cause the SGPawn to not function properly. So, it's a strict requirement.

important

To have a fully functional SGPawn, simply setting it up is not enough. You still need to setup the Virtual Hand Meshes and setup the Wrist Tracking Hardware.

Extending SGPawn

Follow these steps to extend and set up your own version of SGPawn:

  1. In the Content Browser, click the + Add button, then select Blueprint Class from the menu. Alternatively, right-click inside the Content Browser and choose Blueprint Class from the context menu.

Extending SGPawn - Adding a Blueprint Class

  1. A dialog will appear asking you to choose a parent class. Click on the ALL CLASSES section to expand the list of available classes.

Extending SGPawn - Picking a Parent Class

  1. In the expanded ALL CLASSES section, start typing SGPawn in the Search box. When SGPawn appears, select it and click the Select button to create your new Blueprint class based on it.

Extending SGPawn - Picking SGPawn as the Parent Class

  1. After returning to the Content Browser, the Unreal Editor will prompt you to rename NewBlueprint to your desired class name. You can rename the class at any time by pressing F2 or by right-clicking on it and selecting Rename from the context menu.

Extending SGPawn - Renaming NewBlueprint

  1. Once you have renamed the NewBlueprint class to your desired name, click on Save All to save the new class to disk.

Extending SGPawn - Renamed NewBlueprint to BP_SGPawn

  1. Finally, set your newly created subclass of SGPawn as the Default Pawn Class. Depening on the Unreal Engine version and your project's type and configuration, you might be able do this by navigating to Project Settings > Project > Maps & Modes > Default Modes > Selected GameMode > Default Pawn Class. However, regardless of the engine version or project type and configuration, you can always configure this by opening your Default GameMode and setting the Default Pawn Class directly from there. Once set, click on the Compile button and save your game mode Blueprint asset.

Extending SGPawn - Setting the default class BP_SGPawn

important

To have a fully functional SGPawn, simply setting it up is not enough. You still need to setup the Virtual Hand Meshes and setup the Wrist Tracking Hardware.

Customizing SGPawn

Customizing the SGPawn after subclassing is straightforward and flexible.

The SGPawn class includes several key subcomponents:

  • Wrist Tracker Left and Wrist Tracker Right of type SGWristTrackerComponent.
  • HandLeft and HandRight of type SGVirtualHandComponent and represent the virtual hand models visible to the user in the simulation.
  • RealHandLeft and RealHandRight of type SGVirtualHandComponent. By default, these are hidden and represent the real hands within the simulation. These components are useful if you need to separate the rendering of the virtual hands from the real hands. For instance, the virtual hands typically have collisions and cannot pass through objects, while the real hands are not constrained in this way.

Customizing SGPawn - The SGPawn components

Also, it's possible to filter the properties for these SenseGlove components inside the Details panel inside the SGPawn Blueprint Editor by typing the word SenseGlove inside Search box of the Details panel.

Customizing SGPawn - Filtered SGPawn Details panel

Please visit how to setup the Virtual Hand Meshes, The Virtual Hand Mesh Settings, and how to setup the Wrist Tracking Hardware sections for more information.