2D Toolkit Forum

2D Toolkit => Support => Topic started by: LordYabo on July 29, 2013, 11:17:01 pm

Title: Help! I lost my text shader!
Post by: LordYabo on July 29, 2013, 11:17:01 pm
I accidentally added a 2dtk text mesh to an object I didn't want it on. 
I then proceeded to remove the components, but hit Reset on the GradientFontMaterial instead of removing it.

Now my text mesh material is messed up whenever I try to add any text mesh, everything is just white.  Attached is a screenshot.

What do I set this too so I can see my fonts again?

Title: Re: Help! I lost my text shader!
Post by: unikronsoftware on July 29, 2013, 11:21:02 pm
Drag and drop the correct textures into the texture slots - the should be in the same directory as the materials.
Title: Re: Help! I lost my text shader!
Post by: LordYabo on July 30, 2013, 03:05:50 am
And the name of the texture would be... ????

I found a folder called demogradientfont with a grad texture.  I dragged that into Base and Gradient texture but it is all messed up multi colored blocks.

Title: Re: Help! I lost my text shader!
Post by: profanicus on July 30, 2013, 04:44:55 am
Gradient font uses the test_0 texture.
Title: Re: Help! I lost my text shader!
Post by: LordYabo on July 30, 2013, 07:24:11 pm
Thanks, got it.

For anyone else as dumb as me the answer is:
Base (RGB) Trans (A) is the text font "test_0"
Gradient (RGBA) is the coloring "grad"