# MATERIAL - using a material to distribute numbers around the perimeter of a shape (hexed!!)

**URL:** <https://forums.unrealengine.com/t/material-using-a-material-to-distribute-numbers-around-the-perimeter-of-a-shape-hexed/2702719>\
**Category:** Asset Creation\
**Tags:** unreal-engine, Shaders, shader, question\
**Created:** [February 27, 2026, 2:24pm UTC](https://forums.unrealengine.com/t/material-using-a-material-to-distribute-numbers-around-the-perimeter-of-a-shape-hexed/2702719 "2026-02-27T14:24:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frenetic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frenetic/32/1142542_2.png) [@Frenetic](https://forums.unrealengine.com/u/Frenetic)\
**Post date:** [February 27, 2026, 2:24pm UTC](https://forums.unrealengine.com/t/material-using-a-material-to-distribute-numbers-around-the-perimeter-of-a-shape-hexed/2702719/1 "2026-02-27T14:24:16Z")

</div>

Hexes, it’s always hexes.. If I was a [Lantern](https://en.wikipedia.org/wiki/Green_Lantern_Corps), my color-weakness would be the color-hexes..

I have a hex-based game with the need to put numbers at the corners (or the middle of the sides) to illustrate attack-weights, movement-costs, etc. I have a few ways I thought I could use such things.

Regardless, consider this shape and where the diamonds/stars are might be numbers:

 ![Circle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/b/6cbeeb38ab598df3daf0ffe3dcdaf45679f3a371.jpeg)

Ideally I’d like to be able to put a number there, but at a minimum of cost as I want to avoid having to keep track of 100’s of hexes worth of decals, etc. To-wit vs using a discreet mesh per number, or a decal, which would be several per-tile, I thought why not just-make-the-material-do-t?? (always my goto-solution 😃 the lazy-man’s game..).

That being said I found some useful resources, but don’t have the math-chops to quite pull it together..

Visual Tech Art has an excellent video on scattering that comes close, but it’s gridded vs hexed:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/1/fc18eda8c483b2d918a55a8be5a71c1623bf6f70.jpeg "Infinite Non-Repeating details in materials (UE4, valid for UE5)") ](https://www.youtube.com/watch?v=NLisbiHfxUM)

Is this something that might be doable in UVs when making the mesh? Otherwise, is there anyone out there that might find this problem ‘interesting enough’ to make a pass at it? 🤲 I can already get text to appear as I want via an Epic tutorial, but I cannot seem to marry the two and add the hexeyness I require..

ref:

> **[Dynamic Text Material Walkthrough | Community tutorial](https://dev.epicgames.com/community/learning/tutorials/WW9y/unreal-engine-dynamic-text-material-walkthrough)**
>
> Breaks down the math and material nodes used to render dynamic number text.
