Is there a way to make it so I can overlay a GuiTexture ontop of GuiText and have it act as an alpha channel? So that the texture shows up inside of the text. I would also be swapping out different textures for different text effects.
Now that I think about it I’m thinking of a layer mask similar to how you can set it up in photoshop
Maybe take a look at the free plug-in ‘iTween’. Using that, I’m able to set down the alpha (or animate the alpha channel) of my GUIText objects.
This is a little different than that. I guess what I was trying to say before was just the masking. So if I had a picture as a top layer, I was the picture to only show through the text. Kind of like if you made the text have a green screen effect and then displayed an image ontop of it that only shows through the areas that were marked green.
1 more attempt, I made a simple picture of the effect. Or maybe this is a shader deal? Else I’ll post there.
You could use another way, placing the background first, then the text above it. if you want to have such simple colored effects, then just use a simple shader on both and change the color via script.
If you want to use a custom texture for it, you might need to play around with some basic shaders or a custom one, where the alpha channel will be your mask and the texture an overlay of it, should be pretty basic when I think of it. When I find some time tomorrow or so I could test it ^^
That would be great! I’m guessing it would be a simple shader but I want the background image to stay still as the text moves around.
Well I searched a bit, but couldn’t find anything about addin textures to GUIText as Overlay, also tried to achieve it myself, but as mentioned before I’m not into shader creation/editing.
If you want to stick to solid colors, you could use: guiText.material.color = Color.green; (attach this script to GUIText) to change the color of the GUIText within the game to any color you like, as for the BG just place a plane there with a simple color mat or so on it, which you could also change.
Things getting more complex if you want an texture overlay, so let’s wait for some responses on this
I’ll just repost in shaders. I’m just looking for a texture overlay. Thanks for attempting to help though