2D Toolkit Forum

2D Toolkit => Support => Topic started by: anfemaPeter on March 06, 2014, 03:43:51 pm

Title: Textmesh messed up after reactivating
Post by: anfemaPeter on March 06, 2014, 03:43:51 pm
Hi there,

I used 2D-Toolkit in some of my projects and it always worked as expected and saved me a lot of work :)
But now I got a serious problem: In my newest project I have to deactivate a label-GameObject, which holds a textMesh as a child. After reactivating the label-GameObject the textMesh gets totally messed up in scale and also in the displaying of the characters. I made some screenshots to visualize my problem more in detail and also included the used settings of the textMesh.

Normal label-GameObject

(http://img.dev.anfe.ma/2dtk/2dToolkitTextMesh_01.JPG)


After disabling and enabling of the label-GameObject

(http://img.dev.anfe.ma/2dtk/2dToolkitTextMesh_03.JPG)


This are the settings I'm using. I tried scaling the gameObject of the textMesh and also the textMesh itself.

(http://img.dev.anfe.ma/2dtk/2dToolkitTextMesh_02.JPG)



I'm hoping someone of you can help me with this one :)
Title: Re: Textmesh messed up after reactivating
Post by: unikronsoftware on March 06, 2014, 04:20:20 pm
Why do you have a unity text mesh and a tk2dtextmesh on the same object?
Title: Re: Textmesh messed up after reactivating
Post by: anfemaPeter on March 06, 2014, 04:43:15 pm
Thank you for that hint! I totally overlooked that fault. After removing the unitytextmesh, the tk2dtextmesh now works like a charm. Thank you very much for your fast help :)