Text Drop Shadows are hard to do...

So I’ve got a simple drop shadow working for my text box script.

The problem is that when I have the script display text box choices, the drop shadows become hard to do as I have animations for the text (it grows and shrinks). I’ve spent many hours now just trying to find a solution.

  1. My first thought was just to create a child, but you can’t simply create a child object because the drop shadow text has to be above the normal text in the hiearchy.
  2. So I tried setting the drop shadow text to just above the normal text in the hiearchy. That worked, but now when the original text grows and shrinks etc…, the drop shadow text for some reason has a hard time keeping up with the animation.

The easiest solution I could think of? Just bake the drop shadow into the font, but from what I’m reading that doesn’t seem possible as fonts have to be just black and white.

Maybe there’s a way to apply a material to the text object or something that somehow outlines it? Outlined text wouldn’t be bad at all. I feel like there may be an easy solution to this problem.

For now I’m just stuck with drop shadow text for my normal text in my text box, and then pure white choice text, which is simply not gonna look as good, but I don’t feel like spending days to get the functionality for drop shadows working (because I don’t know what to do at this point to keep the animation and have it have a drop shadow)… Here’s a screenshot:

theres shadow and outline components, do they work?
3048590--228686--upload_2017-4-27_14-51-41.png

or free textmeshpro

3 Likes

Wow…

And you know I just got it working in the way I was doing it too, but yeah…should have figured they would have had something like this.

The thing I learned from this is that a parent object needs to work almost like as a master event trigger object (as I was triggering the animation states through an event trigger, but had a new event trigger attached to each object, so they were conflicting with each other).