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.


Messages - pansapiens

Pages: [1]
1
Support / Solution to tk2dUITextInput scale problem
« on: January 11, 2014, 01:23:03 am »
I believe I just figured it out.

Rather than scaling the Unity transform, scale individual components of the text input component using the 2D Toolkit "Scale" setting.
eg, the Scale fields on the various tk2dSlicedSprite and tk2dTextMesh components that make up a text input. You may need to manually adjust the local position of the text components a little after scaling.

On the tk2dUITextInput, ensure you increase the Field Length to match your text input - there's a gizmo showing the field length in the Scene view to help.
Make sure you also resize the collider. The quick way is to click on the Collider - Automatic Fit - "Fit" button (on the text inputs tk2dUIItem).

That seems to do it. Now back to making my highscore entry UI  ;D

2
Support / Re: tk2dUITextInput scale problem
« on: January 11, 2014, 12:59:30 am »
I'm seeing the exact same problem here on version 2.3.3 (Unity 4.3.2f1). I'm fairly new to 2D Toolkit, so I could be missing something.

As a test, I resized the tk2dUITextInput within the "2 - UI Layout demo" scene. At scale (2,2,1) the cursor seems to advance the width of two characters when a single character is typed. This means that at large scales (eg x 250) a single character will push the cursor outside the box and you'll see nothing. It makes no difference where the scale is applied (to parent transform, or each child transform).

Any solution ?

Pages: [1]