Radial Weapon Wheel – documentation
Version 1.0.0 · Unreal Engine 5.8 · Windows 64-bit · C++ plugin with Blueprint children · Support: lozanalekseev@gmail.com
A hold-to-open weapon wheel in the style of modern action games: hold Tab (or the gamepad’s left shoulder), the world slows down, the wheel opens in the bottom right corner (your character stays in view), point at a weapon with the mouse or a stick, let go – it is in your hand.
Contents
- Features
- Requirements and installation
- Quick start
- How it fits together
- Adding the wheel to your character
- Entries – what a segment shows
- The wheel component – reference
- Hooks – changing the behaviour
- Recipes
- Modular Inventory & Equipment
- Input
- Project Settings – reference
- The style – reference
- Your own textures
- The widget – reference
- C++
- Console commands and logging
- Performance, multiplayer and other notes
- Troubleshooting
- FAQ
- Content of the plugin
1. Features
- Hold to open, release to take (or press to open, confirm to take – Toggle mode).
- 2 to 8 segments, clockwise from the top. Each shows an icon, a name and a short line; the middle of the wheel shows the pointed one’s category, name, description and a hint.
- Slow motion while the wheel is open (single player); the wheel itself animates in real time.
- Mouse, either gamepad stick, number keys 1-8; cancel with Escape, the right mouse button or the gamepad’s right face button. The camera does not turn while the wheel is open.
- No setup: a quick start adds the wheel to the player’s pawn and binds the keys – its Enhanced Input actions are made at run time, nothing to add to your input assets.
- A ready-made look – smoked glass, a thin metal rim with fine ticks, a slowly turning ring, an amber light – and every texture, colour, font, size, screen position and sound in one style asset.
- Your own data: a list in the Details panel, or fill it from any system through one hook (weapons, abilities, spells, emotes, commands).
- C++ or Blueprint: hooks for what the segments are, when the wheel may open and what taking one does – written in the Blueprint children as commented nodes; events for opening, closing, hovering and taking.
- Modular Inventory & Equipment (optional, a separate plugin): when it is in the project, the wheel shows the character’s real weapons and equips them – with no setup and no build dependency.
2. Requirements and installation
- Unreal Engine 5.8, Windows 64-bit. Blueprint-only and C++ projects.
- Enhanced Input (on by default in UE 5).
- Nothing else.
From Fab: install the plugin to the engine from the Fab library, then in your project Edit > Plugins, search Radial Weapon Wheel, tick it and restart the editor.
By hand: put the RadialWeaponWheel folder in your project’s Plugins folder (create it if needed) so that the
file is at <Project>/Plugins/RadialWeaponWheel/RadialWeaponWheel.uplugin, open the project and enable the plugin if it
is not on. A C++ project compiles it with the project; a Blueprint-only project uses the binaries that come with it.
Packaged games: nothing to do. The default style and the Blueprint classes are referenced from the plugin’s settings
(soft references, which the cooker does not follow), so the plugin’s editor module adds its content folder
/RadialWeaponWheel to the cook – in memory, nothing is written to your project’s settings.
3. Quick start
- Enable the plugin (section 2).
- Open any map with a player character – the Third Person template is fine – and press Play.
- Hold Tab (gamepad: left shoulder). Move the mouse toward a weapon, let go.
What happens: the quick start adds BP_RW_WheelComponent to the player’s pawn and the input subsystem binds Tab and the left shoulder. The wheel shows six example weapons (Longsword, Hunting Bow, War Axe, Spear, Dagger, Flanged Mace). The log says:
LogRadialWheel: [QuickStart] added BP_RW_WheelComponent_C to BP_ThirdPersonCharacter_C_0 - turn off in Project Settings > Plugins > Radial Weapon Wheel once your character has its own
LogRadialWheel: [Input] wheel keys bound for BP_ThirdPersonPlayerController_C_0
Next steps: put the component on your own character (section 5), give it your weapons (sections 6 and 9), and turn the quick start off: Project Settings > Plugins > Radial Weapon Wheel > Quick Start > Add Component To Player Pawn.
4. How it fits together
keys / mouse / sticks your weapon system
| ^
v | ActivateEntry / On Entry Selected
URWInputSubsystem --- OpenWheel / SetAim ---> URWWheelComponent (on the character)
(one per local player) | GatherEntries -> the segments
| CanOpenWheel, slow motion, pointing
v
URWWheelWidget (WBP_RW_Wheel) <--- URWStyle (DA_RW_DefaultStyle)
- URWWheelComponent (“RW Weapon Wheel”) lives on the character. It asks Gather Entries what the segments are, opens and closes the wheel, runs the slow motion, works out which segment is pointed at and calls Activate Entry when one is taken. It creates the widget the first time it opens.
- URWWheelWidget only shows what the component says. It is built in C++ from the style; its Blueprint child WBP_RW_Wheel plays the sounds and is the place for your own additions.
- URWStyle is a Data Asset with the look.
- URWInputSubsystem turns keys into calls on the component (Open Wheel, Set Aim, Close Wheel, Select Index). Turn it off and call the same functions from your own input if you prefer.
- URWSettings (Project Settings) holds the keys, the defaults and the quick start.
- URWInventoryBridge reads Modular Inventory & Equipment when it is in the project.
5. Adding the wheel to your character
Blueprint
- Open your character Blueprint. Add (Components panel) > search BP_RW_WheelComponent (recommended – it has the hooks as nodes you can edit) or RW Weapon Wheel (the C++ class).
- Select it and fill Details > Radial Wheel > Entries with your weapons (section 6), or leave Use Modular Inventory on if your character has Modular Inventory’s components.
- In the Event Graph: select the component, Events > On Entry Selected (+) and switch your weapon there (section 9.3).
- Project Settings > Plugins > Radial Weapon Wheel: turn Add Component To Player Pawn off.
- Play, hold Tab.
Only a locally controlled player pawn opens its wheel (see Can Open Wheel). AI characters may carry the component – it does nothing for them.
C++
// YourGame.Build.cs
PublicDependencyModuleNames.Add("RadialWeaponWheel");
// YourCharacter.h
#include "RWWheelComponent.h"
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Weapons")
TObjectPtr<URWWheelComponent> WeaponWheel;
// YourCharacter.cpp - constructor
WeaponWheel = CreateDefaultSubobject<URWWheelComponent>(TEXT("WeaponWheel"));
// BeginPlay
WeaponWheel->OnEntrySelected.AddDynamic(this, &AYourCharacter::HandleWeaponPicked); // UFUNCTION()
A C++ subclass of URWWheelComponent can override the hooks (section 16).
6. Entries – what a segment shows
Each segment is one FRWWheelEntry (RW Wheel Entry in Blueprint). The first entry is at the top, the rest follow clockwise. At most Max Segments (2-8) are shown.
| Field | Type | Default | What it does |
|---|---|---|---|
| Id | Name | None | Your id for it: a Data Table row name, an item id, an ability tag name. Not shown. |
| Display Name | Text | empty | The name in the segment and in the middle of the wheel. |
| Category | Text | empty | The small accent-coloured line above the name in the middle (“ONE-HANDED”, “RANGED”). |
| Detail | Text | empty | The short line under the name in the segment (“Damage 24”, “x12”, “Cost 30”). Also shown in the middle when Description is empty. |
| Description | Text | empty | The longer text in the middle while the segment is pointed at. |
| Icon | Texture 2D (soft) | none | The icon. Empty = the style’s Empty Icon. The plugin’s emblems (/RadialWeaponWheel/UI/Icons) are tinted with the style’s Emblem Color; your own icons keep their colours. |
| Name Color | Linear Color | (0.93, 0.92, 0.88) | Colour of the name (a rarity colour, a damage type). |
| Enabled | bool | true | Off: shown dimmed, the hint says “Not available” and it cannot be taken (no ammo, broken, locked, on cooldown). |
| Source | ERWEntrySource | Custom | Custom for your own entries; ModularInventory for entries made by the Modular Inventory link. Activate Entry uses it to decide what to do. |
| Item Instance Id | Guid | empty | Modular Inventory: the item. Also keeps the item’s segment in place (see below). |
| Equipped | bool | false | Modular Inventory: the item is worn. The hint then says “Equipped”. |
| Payload | Object | none | Anything of yours to carry along: a weapon class, a data asset, an ability. |
Segment order. Entries with an Item Instance Id keep the place they first got on the wheel, even when your list changes order (an equip that moves the worn weapon to the front would otherwise move every segment). New items go after the known ones; items that are gone free their place. Entries without an id are shown in the order you give.
Refreshing. The component calls Gather Entries when the wheel opens and four times a second while it is open, so ammo counts and availability stay current. Call Refresh Entries yourself if you need it at another time.
7. The wheel component – reference
Class URWWheelComponent (C++), display name RW Weapon Wheel; Blueprint child BP_RW_WheelComponent. Header
RWWheelComponent.h.
Properties (Details > Radial Wheel)
| Property | Type | Default | Meaning |
|---|---|---|---|
| Use Modular Inventory | bool | true | Fill the wheel from Modular Inventory & Equipment when the owner has its MI Equipment component. Off, or without that plugin: the Entries below. |
| Entries | array of RW Wheel Entry | 6 examples | Your segments, clockwise from the top. |
| Active Index | int | 0 | Which of the Entries is in hand now. Set by the default Activate Entry; set it yourself when the weapon changes another way. INDEX_NONE (-1) = none. |
| Max Segments | int (2-8) | 8 | Extra entries are left out. |
| Slow Motion | float (0.01-1) | 0.2 | How fast the world runs while the wheel is open. 1 = no slow motion. Global time dilation, restored on close; single player only. |
| Dead Zone | float (0-0.9) | 0.2 | How far the pointer must move (0..1 of its range) before a segment is picked. |
| Keep Last Pointed | bool | true | Letting go inside the dead zone takes the segment last pointed at (on) or takes nothing (off). |
| Style | RW Style | none | Empty = the project’s style. |
| Widget Class | class of RW Wheel Widget | none | Empty = the project’s widget class. |
Events
| Event | Parameters | When |
|---|---|---|
| On Wheel Opened | – | The wheel opened. |
| On Wheel Closed | – | It closed (taken or cancelled). Fires after On Entry Selected. |
| On Entry Hovered | Index, Entry | The pointer moved onto another segment. |
| On Entry Selected | Index, Entry | A segment was taken and Activate Entry returned true. Switch your weapon here. |
Functions
| Function | Returns | Meaning |
|---|---|---|
| Open Wheel | – | Opens it (when Can Open Wheel says yes and there is at least one entry). |
| Close Wheel (Take Pointed = true) | – | Closes it; with Take Pointed the pointed segment is taken, else it is a cancel. |
| Is Wheel Open | bool | |
| Set Aim (Aim: Vector 2D) | – | Where the stick / mouse points: x right, y up, length 0-1 (1 = the edge). Clamped to 1. |
| Add Aim Delta (Delta: Vector 2D) | – | Adds to the pointer (mouse movement); clamped to the edge. |
| Get Aim | Vector 2D | |
| Select Index (Index) | bool | Takes a segment now. While open it closes the wheel. True when that segment is in hand afterwards. |
| Refresh Entries | – | Calls Gather Entries again. |
| Get Shown Entries | array of RW Wheel Entry | What the wheel shows (after Gather Entries and Max Segments). |
| Get Hovered Index | int | The pointed segment (-1 = none). |
| Get Shown Active Index | int | The segment in hand among the shown ones (-1 = none). |
| Get Last Reason | Text | Why the last take was refused (for a message on your HUD). |
| Get Style | RW Style | The style in use (the component’s or the project’s). |
| Index For Direction (Direction, Count) – static | int | The segment a direction points at, for Count segments clockwise from the top. |
| Segment Angle (Index, Count) – static | float | Centre of a segment in degrees, counter-clockwise from the right (90 = top). |
| Find Wheel Component (Actor) – static | RW Wheel Component | The actor’s wheel, or none. |
8. Hooks – changing the behaviour
The component has three hooks (BlueprintNativeEvent). The C++ default does the job; BP_RW_WheelComponent overrides each with the same logic as nodes and a comment, so you can open it and change it without C++. To keep the plugin’s Blueprint untouched, make your own child: right-click BP_RW_WheelComponent > Create Child Blueprint Class, put that on your character (or set it as the quick start’s Component Class).
Gather Entries
GatherEntries(out Entries, out ActiveIndex) – what the segments are.
Default: if Use Modular Inventory is on and the owner has MI Equipment, the owner’s weapons (section 10); else Entries and Active Index.
Change it to fill the wheel from your own system: loop over your weapons (or a Data Table, your abilities), make an entry for each, return them with the index of the one in hand. It is called on open and four times a second while open – keep it light (no asset loading in it; icons are soft references and are loaded by the widget when shown).
Can Open Wheel
CanOpenWheel() -> bool – may the wheel open now?
Default: the owner is a pawn that is locally controlled by a player.
It is also checked every frame while the wheel is open; false closes it as a cancel. Add your own rules: dead, in a menu, in a cutscene, swimming, climbing, stunned.
Activate Entry
ActivateEntry(Index, Entry, out Reason) -> bool – a segment was taken: put that weapon in hand.
Default: a Modular Inventory entry is equipped from the bag into its own slot; your own entry becomes the Active Index.
Return false with a Reason to refuse (not enough strength, in combat, the weapon is broken); the wheel keeps what was in hand, Get Last Reason returns the reason and On Entry Selected does not fire. Return true when the weapon was switched – On Entry Selected follows.
Usually you either change this hook or bind On Entry Selected – both work. The hook can refuse; the event cannot.
9. Recipes
9.1 A fixed list of your weapons (no code)
Select the wheel component on your character > Entries: delete the examples, add one element per weapon, fill Display Name, Category, Detail, Description and Icon. Set Active Index to the one the character starts with. Bind On Entry Selected (9.3).
9.2 Fill it from a Data Table
- Make a struct with your weapon’s data (name, icon, damage, the weapon class) and a Data Table of it.
- Open your child of BP_RW_WheelComponent > Gather Entries (override): Get Data Table Row Names > For Each Loop > Get Data Table Row > Make RW Wheel Entry (Id = the row name, Display Name, Icon, Detail “Damage {0}” with Format Text, Payload = the weapon class) > Add to a local array. Return the array and the index of the weapon in hand.
9.3 Switch the weapon when a segment is taken
Event Graph of your character: select the wheel component > On Entry Selected (Index, Entry) > Break RW Wheel Entry > use Id or Payload to find your weapon > your own “equip” (destroy the old weapon actor, spawn the new one, Attach Actor To Component to the hand socket, play the draw montage).
9.4 An ability, spell or emote wheel
The same component, other entries: Id = the ability’s name or tag, Icon = its icon, Detail = “Cost 30” or the cooldown, Enabled = off while it cannot be used. In Activate Entry (or On Entry Selected) activate the ability instead of equipping. Use a second component for a second wheel (9.7).
9.5 Entries that cannot be taken (no ammo, cooldown)
In Gather Entries set Enabled off for them and put the reason in Detail (“No arrows”). They are dimmed and cannot be taken. The wheel refreshes four times a second while open, so a cooldown that ends shows up at once.
9.6 Toggle instead of hold, other keys
Project Settings > Plugins > Radial Weapon Wheel > Input: Open Mode = Toggle (press to open, confirm with left mouse / gamepad bottom face button / the key again), Open Keys = any keys. Number keys can be turned off.
9.7 Your own input (several wheels, other actions)
Turn Bind Keys off. From your Enhanced Input actions call on the wheel component: – the open action Started > Open Wheel; Completed > Close Wheel (Take Pointed true); – a 2D look action Triggered > Add Aim Delta (mouse: the value / 60) or Set Aim (stick: the value as is); – cancel > Close Wheel (Take Pointed false); number keys > Select Index.
With your own input, several wheel components on one character work – open the one you want.
9.8 The wheel in the middle of the screen, or somewhere else
Duplicate DA_RW_DefaultStyle, set Screen Anchor and Screen Alignment to 0.5, 0.5 and Screen Offset to 0, 0 (the middle), or any corner: anchor and alignment 0, 0 = top left, 1, 0 = top right, 0, 1 = bottom left; the offset is the margin in px at 1080p (positive x = right, positive y = down). Set the style in Project Settings or on the component.
9.9 Another colour, size or font
The same duplicated style: Accent Color (the light, the pointer, the ring, the category), Wheel Size, the fonts (empty = Roboto), Screen Shade (0 = no darkening), Background Blur (0 = off), Ring Spin (0 = still).
9.10 Sounds
Set Open Sound, Hover Sound, Select Sound and Close Sound in the style – WBP_RW_Wheel plays them (2D). Use Sound Cues or MetaSounds; leave empty for silence.
9.11 Your own widget parts
Make a child of WBP_RW_Wheel (right-click > Create Child Widget Blueprint), add your parts in its graph using On Wheel Shown, On Hover Changed, On Entry Taken, On Wheel Hidden and Get Wheel (the component: its entries, the pointed index). Set it as Widget Class in Project Settings or on the component.
9.12 Pause instead of slow motion
Set the component’s Slow Motion to 1 and bind On Wheel Opened > Set Game Paused (true) and On Wheel Closed > Set Game Paused (false). The wheel keeps working while the game is paused (its input and animation run on the player controller and real time).
10. Modular Inventory & Equipment
Modular Inventory & Equipment is a separate plugin by the same author (an inventory with a paper-doll character screen). The wheel works with it plug and play: when both are in the project and the character has the MI Equipment component (Modular Inventory’s own quick start adds one), the wheel shows the character’s weapons and equips them. Nothing to connect.
- What it shows: the worn weapons first – main hand, ranged, off hand – then the weapons in the bag in bag order.
- What counts as a weapon: an item whose Equip Slot is Main Hand, Off Hand or Ranged and whose Item Type is Weapon (any Ranged item counts too).
- Per segment: the item’s icon, its name in its rarity colour (custom names too), the slot name as the category, “Damage N” from its Stats when it has a Damage stat, its description; worn items say “Equipped”.
- Taking one: an item from the bag is equipped into its own slot – what was there goes back to the bag (Modular Inventory’s own rules apply, a refusal comes back as the Reason). A worn item stays worn.
- Active segment: the main-hand weapon, else the ranged one.
- Order: a weapon keeps its place on the wheel when it is equipped or put away.
There is no build dependency: the wheel finds Modular Inventory by its class names at run time (reflection), so this plugin builds and runs the same with or without it. Turn the link off per character with Use Modular Inventory.
Blueprint nodes (Radial Wheel > Modular Inventory):
| Node | Meaning |
|---|---|
| Is Modular Inventory Available | The plugin is in the project. |
| Has Modular Inventory (Actor) | The actor has an MI Equipment component. |
| Gather Weapons (Actor; out Entries, Active Index) -> bool | The actor’s weapons as entries; false when it has no MI Equipment. |
| Equip Entry (Actor, Entry; out Reason) -> bool | Equips the entry’s item from the bag. |
11. Input
The input subsystem (one per local player) makes its own Enhanced Input actions and mapping contexts at run time:
| Context | When | Keys |
|---|---|---|
IMC_RW_Open (priority Input Priority) |
always | Open Keys (default Tab, Gamepad Left Shoulder) |
IMC_RW_Wheel (priority Input Priority + 1) |
only while the wheel is open | mouse movement, both gamepad sticks (point), left mouse / gamepad bottom face button (confirm), Escape / right mouse / gamepad right face button (cancel), 1-8 (take a segment) |
While the wheel is open its context sits over the game’s and takes these keys, so the camera does not turn and the character does not walk (with the default priority 100; raise it if your contexts use higher priorities).
| Action | Hold mode | Toggle mode |
|---|---|---|
| Open key pressed | opens | opens; when open: takes the pointed segment |
| Open key released | takes the pointed segment | – |
| Mouse / stick | points | points |
| Left mouse / gamepad A | takes the pointed segment | takes the pointed segment |
| Escape / right mouse / gamepad B | cancels | cancels |
| 1-8 | takes that segment | takes that segment |
Mouse: 60 counts of mouse movement move the pointer from the middle to the edge at Mouse Sensitivity 1. Stick: the direction is used as it is; a centred stick keeps the last direction (the pick does not jump back when you let go of the stick).
12. Project Settings – reference
Edit > Project Settings > Plugins > Radial Weapon Wheel (saved in Config/DefaultGame.ini,
[/Script/RadialWeaponWheel.RWSettings]).
| Group | Setting | Default | Meaning |
|---|---|---|---|
| Input | Bind Keys | on | Bind the keys for every local player. Off: drive the component yourself (9.7). |
| Input | Open Keys | Tab, Gamepad Left Shoulder | |
| Input | Open Mode | Hold | Hold or Toggle (section 11). |
| Input | Number Keys | on | 1-8 take a segment while the wheel is open. |
| Input | Mouse Sensitivity | 1.0 | 0.1-10. |
| Input | Input Priority | 100 | Priority of the open context; the open-wheel context uses this + 1. |
| Look | Style | DA_RW_DefaultStyle | The project’s style (a component’s Style overrides it). |
| Look | Widget Class | WBP_RW_Wheel | The project’s widget (a component’s Widget Class overrides it). |
| Look | Widget ZOrder | 40 | Z order of the wheel in the viewport. |
| Quick Start | Add Component To Player Pawn | on | Adds a wheel to a local player’s pawn that has none. Turn off once your character has its own. |
| Quick Start | Component Class | BP_RW_WheelComponent | What the quick start adds. |
13. The style – reference
Class URWStyle (Primary Data Asset); the default is /RadialWeaponWheel/UI/DA_RW_DefaultStyle. Duplicate it to make
your own. Sizes are in px at 1080p – UMG’s DPI scaling does the rest.
| Group | Field | Default | Meaning |
|---|---|---|---|
| Layout | Wheel Size | 560 | Diameter (200-1400). |
| Layout | Screen Anchor | 1, 1 | The point of the screen the wheel is placed at (0..1; 1, 1 = bottom right; 0.5, 0.5 = middle). |
| Layout | Screen Alignment | 1, 1 | Which point of the wheel sits on the anchor (1, 1 = its bottom right; 0.5, 0.5 = its centre). |
| Layout | Screen Offset | -90, -70 | Offset from the anchor (negative x = left, negative y = up): the margin from the screen edges. |
| Layout | Label Radius | 0.64 | Where the segment labels sit, as a fraction of the radius (0.3-0.95). |
| Layout | Icon Size | 80 | Segment icons (24-256). |
| Layout | Hub Width | 0.36 | Width of the middle text, as a fraction of the wheel (0.2-0.6). |
| Layout | Background Blur | 6 | Blur of the world behind the disc (0 = off; 0-30). |
| Layout | Screen Shade | 0.55 | How dark the screen around gets (0-1). |
| Layout | Ring Spin | 4 | Degrees per second of the decorative ring (0 = still). |
| Textures | Disc | T_RW_Disc | The glass disc. |
| Textures | Ring | T_RW_Ring | The turning ring of dashes. |
| Textures | Rim | T_RW_Rim | The metal rim and ticks. |
| Textures | Segment Lights | T_RW_Segment_2 … _8 | The light of the pointed segment, one per segment count (element 0 = 2 segments … 6 = 8), each pointing up. |
| Textures | Divider | T_RW_Divider | The line between segments, pointing up; turned to every border. |
| Textures | Pointer | T_RW_Pointer | The chevron toward the mouse / stick, pointing up. |
| Textures | Hub | T_RW_Hub | The rings around the middle. |
| Textures | Vignette | T_RW_Vignette | The full-screen shade (empty = flat black). |
| Textures | Empty Icon | T_RW_Icon_Empty | For entries without an icon. |
| Colours | Disc Color | 1, 1, 1, 1 | Tint of the disc. |
| Colours | Accent Color | 1.0, 0.66, 0.26 (amber) | The light, the pointer, the ring, the category line. |
| Colours | Rim Color | 0.85, 0.88, 0.92, 0.9 | The rim, the dividers, the hub rings. |
| Colours | Text Color | 0.93, 0.92, 0.88 | Names and the middle text. |
| Colours | Dim Text Color | 0.55, 0.57, 0.6 | Details, hints, disabled names. |
| Colours | Emblem Color | 0.9, 0.9, 0.88 | Tint of the plugin’s emblems. |
| Colours | Active Segment Light | 0.22 | Light left on the segment in hand while another is pointed at (0-1). |
| Fonts | Name Font / Detail Font / Hub Name Font / Hub Category Font / Hub Text Font | empty | Empty = Roboto (13 bold / 11 / 20 bold / 11 bold / 12). |
| Sounds | Open / Hover / Select / Close Sound | empty | Played by WBP_RW_Wheel. |
The look is read when the widget is built – the first time a component opens its wheel. Changing the style of a component later takes effect for a new widget (a new pawn, a new level).
14. Your own textures
All wheel textures are white (or grey) with alpha and tinted by the style’s colours. To draw your own:
- 1024 x 1024, the wheel centred, sRGB, compression Default (or User Interface 2D), No Mipmaps, texture group UI, Never Stream.
- The band with the labels lies between 36 % and 90 % of the radius; the rim between 93 % and 97.5 %; the hub inside 33 %. Keep to these so the labels sit well (or change Label Radius and Hub Width).
- Segment Lights: one per segment count (2-8), the lit segment pointing straight up (centred on 12 o’clock), spanning 360 / count degrees. Divider and Pointer also point up.
- Icons: any size (they are drawn at Icon Size); white icons look best with the emblem tint, coloured ones keep their colours.
15. The widget – reference
Class URWWheelWidget (User Widget, built in C++ from the style); Blueprint child WBP_RW_Wheel. The component
creates it for the owning player and adds it to the viewport at Widget ZOrder.
| Member | Kind | Meaning |
|---|---|---|
| Get Wheel | function | The component it shows. |
| Get Wheel Style | function | The style it was built with. |
| Get Hub Hint (Entry, Is Active) -> Text | hook (BlueprintNativeEvent) | The small line under the name in the middle. Default: “Not available” / “Equipped” / “Release to equip”. |
| On Wheel Shown | event | The wheel opened. Default (WBP): plays Open Sound. |
| On Hover Changed (Index, Entry) | event | Another segment pointed at. Default: Hover Sound. |
| On Entry Taken (Index, Entry) | event | A segment was taken. Default: Select Sound. |
| On Wheel Hidden (Took Entry) | event | The wheel closed. Default: Close Sound when nothing was taken. |
The widget animates in real time (it is not slowed down with the world): it fades and scales in, the pointed segment glows and its icon grows, the pointer follows the mouse / stick, the ring turns.
16. C++
Modules: RadialWeaponWheel (Runtime – everything below) and RadialWeaponWheelEditor (Editor – adds the plugin’s content to the cook). Add the runtime one to your module’s dependencies to use the classes:
PublicDependencyModuleNames.Add("RadialWeaponWheel");
Overriding a hook in a C++ subclass:
#include "RWWheelComponent.h"
#include "MyWheelComponent.generated.h"
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class UMyWheelComponent : public URWWheelComponent
{
GENERATED_BODY()
protected:
virtual void GatherEntries_Implementation(TArray<FRWWheelEntry>& OutEntries, int32& OutActiveIndex) override
{
for (const FMyWeapon& W : GetMyWeapons())
{
FRWWheelEntry E;
E.Id = W.Id;
E.DisplayName = W.Name;
E.Icon = W.Icon; // TSoftObjectPtr<UTexture2D>
E.Detail = FText::Format(NSLOCTEXT("Game", "Dmg", "Damage {0}"), W.Damage);
E.bEnabled = W.Ammo != 0;
OutEntries.Add(E);
}
OutActiveIndex = GetMyCurrentWeaponIndex();
}
virtual bool ActivateEntry_Implementation(int32 Index, const FRWWheelEntry& Entry, FText& OutReason) override
{
return EquipMyWeapon(Entry.Id, OutReason);
}
};
Driving it from code: URWWheelComponent::FindWheelComponent(Pawn)->OpenWheel(), SetAim(FVector2D),
CloseWheel(true), SelectIndex(i). Log category LogRadialWheel (RWTypes.h).
17. Console commands and logging
| Command | Meaning |
|---|---|
RW.Open |
Opens the player’s wheel. |
RW.Close [0] |
Closes it and takes the pointed segment; RW.Close 0 cancels. |
RW.Aim <x> <y> |
Points the wheel (x right, y up, -1..1). |
RW.Select <index> |
Takes a segment (0 = top, clockwise). |
RW.Dump |
Logs the segments: name, category, detail, icon, source, worn. |
Log category LogRadialWheel: the quick start, the key binding, each take or refusal; Verbose adds open / close.
log LogRadialWheel Verbose in the console to see them.
18. Performance, multiplayer and other notes
- Cost: nothing while the wheel is closed (the component does not tick, the widget is collapsed). While open: one widget, a few images and texts; Gather Entries four times a second.
- Memory: the 22 textures of the plugin (DXT-compressed, no mips) take about 15 MB; they are loaded when the widget is built.
- Multiplayer: the wheel is local UI – it runs on the owning client. Slow motion uses the global time dilation and is skipped outside single player (it would slow every player down). Switch the weapon through your own replicated logic in Activate Entry / On Entry Selected (e.g. a Server RPC). Modular Inventory’s equipping follows its own rules for networking.
- Split screen: each local player has its own input subsystem and opens the wheel of its own pawn.
- Several wheels per character: use your own input (9.7); the built-in keys open the first wheel component found.
- Gamepad cursor / UI focus: the wheel takes no UI focus and shows no mouse cursor; it works in Game Only input mode.
19. Troubleshooting
| Problem | Check |
|---|---|
| Tab does nothing | The log should show [Input] wheel keys bound. Bind Keys on? Does the pawn have a wheel component (RW.Dump)? Is the pawn locally player-controlled (Can Open Wheel)? Does your game use Tab in a higher-priority context with Consume Input? Raise Input Priority. |
| The wheel opens empty / does not open | It does not open with no entries. RW.Dump lists them. With Use Modular Inventory on and an MI Equipment component on the character, the entries come from the inventory – the character may have no weapons. |
| The camera turns while the wheel is open | Your look action is in a context with a higher priority than Input Priority + 1. Raise Input Priority. |
| Two wheels appear / the quick start adds a second one | The quick start adds a wheel only to a pawn without one. If your character gets its wheel later than BeginPlay, turn the quick start off. |
| Icons missing | Entry Icon empty (the style’s Empty Icon is shown) or the texture path wrong. The icons are soft references – make sure the textures are cooked (referenced or in a cooked folder). |
| No slow motion | Single player only; Slow Motion < 1? Something else may set the global time dilation. |
| A refusal without a message | Activate Entry returned false – read Get Last Reason after On Wheel Closed and show it. |
| The wheel is in the wrong place / too big | The style’s Screen Anchor / Alignment / Offset and Wheel Size (section 13). |
20. FAQ
Is it free? Free for personal use (Fab’s Personal license). For commercial work see the licenses offered on the Fab page.
Do I need Modular Inventory? No. It works on its own with your own entries; with Modular Inventory in the project it fills itself from the inventory.
Can I use it for spells, abilities, emotes, commands? Yes – an entry is just an icon, texts and an id; what taking one does is your Activate Entry / On Entry Selected (9.4).
More than 8 segments? No – 8 is the most a wheel stays readable with. Use two wheels (two components, 9.7) or pages of your own in Gather Entries.
Can it pause the game instead? Yes (9.12).
Blueprint-only project? Yes – everything is exposed to Blueprint and the Blueprint children have the logic as nodes.
Does it need any input assets? No – its Enhanced Input actions are made at run time. With Bind Keys off you use your own.
Can I change the look completely? Yes: the style asset (colours, textures, fonts, sizes, place), your own textures (section 14), and your own widget class (9.11).
21. Content of the plugin
| Path | What |
|---|---|
Source/RadialWeaponWheel |
C++ (Runtime module): RWWheelComponent, RWWheelWidget, RWStyle, RWSettings, RWInputSubsystem, RWInventoryBridge, RWTypes, console commands. |
Source/RadialWeaponWheelEditor |
C++ (Editor module): adds the plugin’s content to the cook. |
Content/Blueprints/BP_RW_WheelComponent |
The component’s Blueprint child with the hooks as commented nodes. |
Content/Blueprints/WBP_RW_Wheel |
The widget’s Blueprint child (hub hint, sounds). |
Content/UI/DA_RW_DefaultStyle |
The default style. |
Content/UI/Textures |
T_RW_Disc, T_RW_Ring, T_RW_Rim, T_RW_Segment_2 … _8, T_RW_Divider, T_RW_Pointer, T_RW_Hub, T_RW_Vignette. |
Content/UI/Icons |
Weapon emblems: Sword, Bow, Axe, Spear, Dagger, Mace, Shield, Empty. |
Docs/Documentation.md |
This file. |
All textures and code were made for this plugin.
