Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - awejk

Pages: [1]
1
Support / number of lines in tk2dTextMesh
« on: February 18, 2013, 04:57:39 pm »

Code: [Select]
// calculation width and height tooltip window
Vector2 dimension = textMesh.GetMeshDimensionsForString(text);
int countLine = Mathf.CeilToInt(dimension.x / textMesh.wordWrapWidth);
Debug.Log("countLine = " + countLine + ", dimension.x = " + dimension.x);
float heightY = Mathf.Abs(dimension.y) * countLine;
tk2dSlicedSprite slicedSprite = GetComponent<tk2dSlicedSprite>();
slicedSprite.dimensions = new Vector2(slicedSprite.dimensions.x, heightY);

why the number of lines does not correspond to the actual count?
Where did I wrong?

2
Support / Font
« on: October 18, 2012, 03:16:33 pm »
I have a problem with the font.
My font settings in bmfont
http://ncesoftware.com/projects/Screenshot-1123.png
but in the unity is
http://ncesoftware.com/projects/Screenshot-1121.png

enlarged:
http://ncesoftware.com/projects/Screenshot-1124.png

Edit/Project Settings/Quality - Texture Quality - Full Res.
http://ncesoftware.com/projects/Screenshot-1122.png

I don't understand, why "income" is normal and "expense" is smooth?

Pages: [1]