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
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