# Interact with a single tile

**URL:** <https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825>\
**Category:** Blueprint\
**Tags:** buttons, Map, tiles, unreal-engine, Blueprint, question\
**Created:** [February 17, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825 "2024-02-17T13:05:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyupsarkisla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eyupsarkisla](https://forums.unrealengine.com/u/eyupsarkisla)\
**Post date:** [February 17, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825/1 "2024-02-17T13:05:21Z")

</div>

![Ek Açıklama 2024-02-17 160004](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/a/8aa7e807d857cd5575713794982fa5d9d08ec1bb.jpeg)

I want to interact with each frame separately in the tilemap in the picture above. When the tile is clicked, a widget blueprint will open and I am trying to add an actor to the tile with buttons. To detect clicks, I used line trace as in image 2. I cannot adjust the positions of the buttons as I want or select the frame.

 ![Ek Açıklama 2024-02-17 155624](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/f/f6fa963968a57ac29d55677b011a49a53a08c7fc.jpeg)

---

<div class="post-metadata">

**Author:** ![Midisport\_8x8s](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midisport\_8x8s](https://forums.unrealengine.com/u/Midisport_8x8s)\
**Post date:** [February 17, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825/2 "2024-02-17T18:40:34Z")

</div>

It is not clear what you want. Do you want the four buttons to appear around the selected tile and then these buttons control which actor is spawned in the tile?

---

<div class="post-metadata">

**Author:** ![eyupsarkisla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eyupsarkisla](https://forums.unrealengine.com/u/eyupsarkisla)\
**Post date:** [February 17, 2024, 9:12pm UTC](https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825/3 "2024-02-17T21:12:36Z")

</div>

This is exactly what I want. I would be very happy if you help. I’ve been trying to do this for a while. (I just started learning)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [February 17, 2024, 9:29pm UTC](https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825/4 "2024-02-17T21:29:54Z")

</div>

Hey there @eyupsarkisla! Is this a paper2D tilemap or is this just a 3D plane? If it’s Paper2D you could use a trace like you have and [Get Tile](https://docs.unrealengine.com/5.3/en-US/API/Plugins/Paper2D/PAPER2UPaperTileMapComponent/GetTile/), and iterate from there. However If it’s just it’s own plane, you may have to do some grid math or use the [face location.](https://forums.unrealengine.com/t/how-do-i-get-the-face-of-my-mesh-my-cursor-hits/429294)

---

<div class="post-metadata">

**Author:** ![Midisport\_8x8s](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midisport\_8x8s](https://forums.unrealengine.com/u/Midisport_8x8s)\
**Post date:** [February 17, 2024, 9:45pm UTC](https://forums.unrealengine.com/t/interact-with-a-single-tile/1694825/5 "2024-02-17T21:45:48Z")

</div>

Get a reference to the tile from the line trace.  
Use ProjectWorldToScreen to get it’s position.  
Find out how big the tile is on the screen, or calculate it based on tile world size/scale and distance from camera.  
Pass these to the widget.  
You could use setRenderTransform and maths to set the position of each button.  
Attach functions to each button that use createActor at the position of the square.

I think that should work or at least get you close.
