# Clock face/ Spawn random text in each TextRender cipher

**URL:** <https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292>\
**Category:** Rendering\
**Tags:** rotation, overlap-actors, unreal-engine, question\
**Created:** [August 3, 2019, 10:20am UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292 "2019-08-03T10:20:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 3, 2019, 10:20am UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/1 "2019-08-03T10:20:17Z")

</div>

Edit: The TextRender components should move with the mesh but not rotate themselves

I’d like to make the circular ring of my BP actor look like this:

![284022-223.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/9/729625fe58134810c1ddcc12aac4f12672ff4eed.jpeg)

You see the text does not face with its bottom to the ring, their angles stay should steady.

 ![284025-gaugeface1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/f/78fbe1099a1f7a8cc15276e56b428fc2978e528b.png)

 ![284023-22.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/2/ca21b6852f37a4519e3ec62f91e47dcb21fc3a35.jpeg)

(Ring design solved)

 ![284042-changetophalftextsonoverlap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/1/681155c0f47c63c1b62c0b8e2cdc3b7bf2fd35d6.png)

They are alien letters so it doesn’t matter what’s written.

What I still need to know how to…:

1. **Limit the max. rotation angle from 9 o’clock to 3 o’clock**
2. Each letter inside the meter should be randomly generated (when overlapping the top box)
3. On a certain overlap event, 3 letters should bond together and shoot out of the top. (That’s the 3lines going up in the first picture.)

Any working idea would be pure awesomeness, even if you just know how to put a clock face on a mesh [solved]} - please let me know.

* * *

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 3, 2019, 11:03am UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/2 "2019-08-03T11:03:03Z")

</div>

I managed to make a plane transparent (translucent + additive) and simply drag the clock face upon it - no edges at least! Visually I’m pretty happy with it, you see:

![284027-at.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/9/0a9d88e495b2a354daac6db4b17f5cf2922d3265.gif)

A question about spawning random text or letters inside the ring is still relevant.

i have placed like 36 TextRender components in the Blueprint and each and every one should spawn completely random letters. Any way to do that?

---

<div class="post-metadata">

**Author:** ![BOBtheROSS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOBtheROSS](https://forums.unrealengine.com/u/BOBtheROSS)\
**Post date:** [August 3, 2019, 12:21pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/3 "2019-08-03T12:21:49Z")

</div>

If you work in blueprint, this is the shortes way I can imagine for a random string:

 ![284017-randomstring.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/5/1853e150c7339e7939179011aaec4b8a4653b269.jpeg)

I added a Blueprint copy-paste [TXT file][2]. My String is a local variable in this function.

If you are wokring in C++ you could use the “char” data type that converts a number from the ASCII table into a character and these together to a string.

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 3, 2019, 12:40pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/4 "2019-08-03T12:40:04Z")

</div>

Can I connect this to multiple TextRender components? Print text in them?  
Thanks!

 ![284019-clock.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/c/7dc1846be143b9e87a61a72830b30067f3ed2f8b.png)

It should be one fitting for the customfunction RandomClockText, it’s at BeginPlay.

 ![284041-clock.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/6/f969ee62224a2741b408589da45a243eee89818b.png)

At best, it should the text should be changed under the condition that it is an Overlapping Actor of a Triggerbox/Cube.

 ![284042-changetophalftextsonoverlap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/1/681155c0f47c63c1b62c0b8e2cdc3b7bf2fd35d6.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 4, 2019, 3:36pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/5 "2019-08-04T15:36:12Z")

</div>

To make your cyphers come up randomly just pipe all those variables ( from the cyphers of the clock picture ) into a MakeArray. Then you can just use a RandomIntInRange to select them a put them around the face.

The rest I’m not sure about I’m afraid! 🙂

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 4, 2019, 5:21pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/6 "2019-08-04T17:21:10Z")

</div>

Still Thanks! Will try this next. The raw actors work so far, so cool. 😃

![284145-thethex.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/0/f800d627c79c86eba079918ca35c9d0090b9c350.gif)

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 7:57pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/7 "2019-08-05T19:57:00Z")

</div>

Your suggestion worked!!

A SMALL step needs to be done yet.

ONLY those cyphers which are overlapping with a box should change, meaning, while they’re out of sight, in the lower half. Currently all of them change simultaneously.

![284244-cyh.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/1/d310f22174f69c06f6fedf6fdc99508b2838fc91.gif)

 ![284245-eas.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/f/f7f8a4ecb7370e453835cb26a820cedd13e106e5.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 8:10pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/8 "2019-08-05T20:10:03Z")

</div>

Ok, what is doing the overlapping? The circle or a little box the character is going in?

Assuming it’s lots of little boxes: You need the volume in the lower half and change them on begin actor overlap. That way they only change when outside view.

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 8:46pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/9 "2019-08-05T20:46:36Z")

</div>

30 TextRender components

The box is over the other (or under) half of the circle, - which is out of sight. Only those who overlap should change. What I’ve tried so far didn’t work. (They wouldn’t react. ) Probably there needs to be a condition that does not apply to ALL boxes simultaneously.

 ![284248-triggerbox-outofsight.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/3/623e6f5e6cd2740f80208c0225120962f25b0a87.jpeg)

 ![284247-cn1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/e/6aee7c9c98ceb48d3622b68fb7350e6f7d1f66a7.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 9:14pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/10 "2019-08-05T21:14:51Z")

</div>

Are you getting overlap events from your text render components, if not, what?

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/11 "2019-08-05T21:18:54Z")

</div>

Yes – I mean they are ALL changing on overlap.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 9:20pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/12 "2019-08-05T21:20:24Z")

</div>

But I have a BP with a collision box and text render components, but when the components move through the box I don’t get an overlap ( apart from that I have your answer… )

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 9:23pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/13 "2019-08-05T21:23:37Z")

</div>

With these connections?

(It is a Box Collision component in the BP)

 ![284272-trgg.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/8/968c00e8df811a7e7e0b8d4b04035ddcce3cac72.png)

 ![284273-trgg2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/9/669d279349d40fc1ca1ba0d512b45ba1c14dca32.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 9:26pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/14 "2019-08-05T21:26:56Z")

</div>

Not getting it, sorry. You have a BP which contains and collision box and the text components?

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 9:28pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/15 "2019-08-05T21:28:07Z")

</div>

My fault, Just attached a cube to it and saw that the box was rotating with it.

Box should be on the bottom

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 9:29pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/16 "2019-08-05T21:29:32Z")

</div>

Correct, and I don’t get collision events from the text.

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 9:31pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/17 "2019-08-05T21:31:00Z")

</div>

That’s strange. See my last animation. All ciphers change.

What about creating an external box Actor?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 9:32pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/18 "2019-08-05T21:32:30Z")

</div>

Nope, I think you’re going to need an extra array of components, one for each text component…

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 5, 2019, 9:34pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/19 "2019-08-05T21:34:43Z")

</div>

Another one beside this Make Array?

 ![284274-arr.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/6/4a6bee8c717e3011b85833957582466c46ed05a6.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 5, 2019, 9:40pm UTC](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292/20 "2019-08-05T21:40:55Z")

</div>

yup, but hold on…

[Next page](https://forums.unrealengine.com/t/clock-face-spawn-random-text-in-each-textrender-cipher/453292.md?page=2)
