# TargetSelectionPlugin

**URL:** <https://forums.unrealengine.com/t/targetselectionplugin/134286>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [December 1, 2019, 11:00am UTC](https://forums.unrealengine.com/t/targetselectionplugin/134286 "2019-12-01T11:00:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fill\_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fill\_n](https://forums.unrealengine.com/u/fill_n)\
**Post date:** [December 1, 2019, 11:00am UTC](https://forums.unrealengine.com/t/targetselectionplugin/134286/1 "2019-12-01T11:00:09Z")

</div>

The plugin is intended for switching between the specified actors in the game. Inside the plugin there is an interface TargetSelectionInterface and actor component TargetSelectionComponent. The component has a spherical collision and dispatchers. The first time you click on a given key, the actors that are in collision are added to the component array, the interface method for the first actor (observed), the monitoring start dispatcher and the switching manager for the current actor are called up.  
See more at [https://github.com/filln/UE4-TargetS…ki/Maintenance](https://github.com/filln/UE4-TargetSelectionPlugin/wiki/Maintenance)

> **[Releases · filln/UE4-TargetSelectionPlugin](https://github.com/filln/UE4-TargetSelectionPlugin/releases)**
>
> Plugin for select Actor in game. Contribute to filln/UE4-TargetSelectionPlugin development by creating an account on GitHub.

> **[TargetSelectionPlugin in Code Plugins - UE Marketplace](https://unrealengine.com/marketplace/en-US/product/targetselectionplugin)**
>
> The plugin is intended for switching between the specified actors.

---

<div class="post-metadata">

**Author:** ![fill\_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fill\_n](https://forums.unrealengine.com/u/fill_n)\
**Post date:** [May 2, 2020, 4:37pm UTC](https://forums.unrealengine.com/t/targetselectionplugin/134286/2 "2020-05-02T16:37:11Z")

</div>

Fix bug in RemoveAndSwitchActors when IndexOfCurrentObservedActor get negative value.  
Now if bIsSwitchToFirstActor\_WhenRemoveObservedActor == false and remove observed actor then switch to the next actor in the array.

> **[Release Fix bug in RemoveAndSwitchActors when IndexOfCurrentObservedActor get...](https://github.com/filln/UE4-TargetSelectionPlugin/releases/tag/v1.1)**
>
> Fix bug in RemoveAndSwitchActors when IndexOfCurrentObservedActor get negative value.
> Now if bIsSwitchToFirstActor\_WhenRemoveObservedActor == false and remove observed actor then switch to the next...

The update will appear on the marketplace as soon as possible.

---

<div class="post-metadata">

**Author:** ![Samusam80](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samusam80](https://forums.unrealengine.com/u/Samusam80)\
**Post date:** [December 12, 2020, 2:08pm UTC](https://forums.unrealengine.com/t/targetselectionplugin/134286/3 "2020-12-12T14:08:58Z")

</div>

Hi, can you put an example updated to at least 4.25? The example is good for 4,22. I have some problem to understand. I do this:

---

<div class="post-metadata">

**Author:** ![fill\_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fill\_n](https://forums.unrealengine.com/u/fill_n)\
**Post date:** [March 20, 2021, 7:39am UTC](https://forums.unrealengine.com/t/targetselectionplugin/134286/4 "2021-03-20T07:39:25Z")

</div>

> [@Samusam80](#):
>
> Hi, can you put an example updated to at least 4.25? The example is good for 4,22. I have some problem to understand. I do this:

Hi! You can convert the project to another version in one right mouse botton click on \*.uproject file. Than choose “Switch Unreal Engine version…”.
