Selection Manager
https://www.fab.com/listings/60701332-bc86-48ea-88ac-c13a145bf747
This plugin allows you to select objects in the game via mouse cursor and rectangle selection.
You can also individually customize the result of the selection for each object class.
Features:
High performance (Built using C++)
Ability to select any objects that inherit from Actors or Scene Components (Actors, Pawns, Characters, Scene Components)
Ability to precisely configure collision for selection
Ability to select complex dynamic objects
Ability to call selection functions from other sources (e.g. if you need to select a unit by clicking on its icon)
Optional ability to dynamically highlight objects during selection
Optional ability to set the selection start point to the point that the player clicked on
Optional ability to highlight the object under the cursor
Additive selection
Subtractional selection
Has a set of functions made to select objects by a group or index
Works with variable camera FOV
Works with orthographic camera (can be used for 2D games)
The widget for the selection frame is made using Blueprints. You can customize it with a set of textures and materials that are included in the plugin, or you can even use your own widget
Collision Viewer for visual configuration of the selection collision
Debugger for runtime collision debugging
Technical Details
Plugin contains:
- 3 C++ Classes (SelectionManagerComponent, SelectionManagerInterface, SelectionManagerDebugger)
- 3 Blueprints (Marquee Tool Widget, Collision Viewer, Debugger)
- 9 Materials and Material instances for Marquee Tool
- 10 Simple pattern textures
- 1 Mesh
Code Modules:
- SelectionManager [Runtime]
During the object selection an interface function is called, where you can create your own logic that will change the state of the object you’re selecting.
To get an array of all selected objects you can manually create it and add/remove objects to and from said array, which is located inside the interface function, by hand. (There is an example of creating such an array in the demo project)
Touch Events are not supported.
Network Replication is not supported.
Split screen is not supported.
Supported Development Platforms: Any
Supported Target Build Platforms: Win64, Win32, Mac (Only Win64, Mac for UE5)