# How do I access selected actor in editor when using custom brush builder?

**URL:** <https://forums.unrealengine.com/t/how-do-i-access-selected-actor-in-editor-when-using-custom-brush-builder/114363>\
**Category:** UDK Programming and UnrealScript\
**Tags:** unreal-engine\
**Created:** [July 30, 2018, 4:45pm UTC](https://forums.unrealengine.com/t/how-do-i-access-selected-actor-in-editor-when-using-custom-brush-builder/114363 "2018-07-30T16:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [July 30, 2018, 4:45pm UTC](https://forums.unrealengine.com/t/how-do-i-access-selected-actor-in-editor-when-using-custom-brush-builder/114363/1 "2018-07-30T16:45:43Z")

</div>

@ or anyone who might know the answer,

I created a custom brush builder class that’s working perfectly. It spawns an actor, currently at vect(0,0,0). I would like it to spawn that actor at the location of whatever is selected in the editor. Any idea how I would access that information?

Thanks for any information you can give me.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [July 30, 2018, 8:26pm UTC](https://forums.unrealengine.com/t/how-do-i-access-selected-actor-in-editor-when-using-custom-brush-builder/114363/2 "2018-07-30T20:26:22Z")

</div>

I never could find a way to get the editor selection in UDK with the brush builder. I know it exists but only under the cpp layer and as far as I could tell there’s no unrealscript function that will interact with it

best I could do was check an actor’s layer. perhaps you can fiddle with that to do what you need

---

<div class="post-metadata">

**Author:** ![CobaltUDK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cobaltudk/32/1194497_2.png) [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Post date:** [August 2, 2018, 6:50pm UTC](https://forums.unrealengine.com/t/how-do-i-access-selected-actor-in-editor-when-using-custom-brush-builder/114363/3 "2018-08-02T18:50:45Z")

</div>

I was looking for that too, but I didn’t found anyting. The only thing, similar to the layer as said, was to use some special tag and search it in all actors in the brush code.
