2D Toolkit Forum

2D Toolkit => Support => Topic started by: haxx0rz on February 05, 2013, 07:00:08 pm

Title: Tk2dTextMesh - Word Wrap not working
Post by: haxx0rz on February 05, 2013, 07:00:08 pm
I can't make my tk2dTextMesh word wrap work in Unity. I have already set it as small as 3 in the editor window, and it still never wraps itself. I do notice an arrow on the scene, but whenever I pull it, it disappears, and the Word Wrap disables itself.

How do I fix this problem?

And I see this link is being posted for help, problem is, it is broken.
http://unikronsoftware.com/2dtoolkit/forum/index.php?action=dlattach;topic=131.0;attach=302
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: unikronsoftware on February 05, 2013, 07:05:17 pm
What font are you using? Is it a new font you created or one distributed with the toolkit?
What version of tk2d are you using?

The link is in the private support forum - you will need to register your copy to get access. Details here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,34.0.html
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: haxx0rz on February 05, 2013, 07:21:42 pm
I am using the default font included in the tk2d Test Assets (name is GradientFont).

As for the version, I am using Version 1.8 final + patch 3.
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: unikronsoftware on February 05, 2013, 08:02:27 pm
Looks like you've uncovered a bug - or rather an asset which hasn't been updated in a while. To fix it, select the Gradient Font object in Unity (TK2DROOT/tk2d_demo/demogradientfont/GradientFont), and click Commit.
The wrapping should work correctly now.

It will work correctly if you create a new font.


I've fixed the built in asset for the next version.
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: haxx0rz on February 06, 2013, 11:25:41 am
Alright thanks, it works well now :)
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: fsadeq on January 13, 2014, 07:39:04 pm
I am using the latest version, and have this same bug going on as well. Super weird - word wrap has no effect, and dragging the white arrow just disappears..
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: unikronsoftware on January 14, 2014, 10:41:36 am
The same gradient font? Have you tried committing the font?
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: fsadeq on January 14, 2014, 05:35:03 pm
No, a different font I made before. This is an older project that was using a previous version of 2dTK. I upgraded the framework and the word wrap doesn't work now.
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: unikronsoftware on January 14, 2014, 05:49:08 pm
Have you committed the font with the latest version ? If it still doesn't work, can you send me a simple repro project please?
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: fsadeq on January 14, 2014, 05:57:13 pm
Can't believe I didn't even try that. Works fine now, thanks!
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: fsadeq on February 21, 2014, 08:04:44 pm
This bug cropped up again - I did nothing out of the ordinary. All I did was switch the font to a new font that I added, and now the word wrap doesn't work at all (and disappears when I try grabbing the handle). I'm using the latest version of 2dTK and Unity.
Title: Re: Tk2dTextMesh - Word Wrap not working
Post by: unikronsoftware on February 22, 2014, 12:42:42 pm
Hey, can you get me a repro for this? I haven't seen or heard of any recent issues with this.