// calculation width and height tooltip windowVector2 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);