2D Toolkit Forum

2D Toolkit => Support => Topic started by: birdkingz on September 30, 2015, 08:29:33 am

Title: tk2dUITextInput doesn't working in Unity 5.2
Post by: birdkingz on September 30, 2015, 08:29:33 am
I noticed tk2dUITextInput no longer working in Unity 5.2
Could u please fix it?
The problem is when I click on the Input text, whatever I type on my keyboard doesn't show on the Input Label.
Apparently the tk2dUITextInput isn't receiving any input commands from keyboard.
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: LaserDinosaur on October 01, 2015, 05:36:36 am
What version of 2d toolkit do you have? I'm running 2.5.0 and 2.5.4 and it's working fine in both. Perhaps your running a version of tk2d that was released before Unity 5.2? (Note the asset store version is quite slow to update, you might want to grab the latest version here from the forums if that's the case).

(https://dl.dropboxusercontent.com/u/20830426/tk2d_textboxbug.png)

What happens if you try opening the test demo at "TK2DROOT/tk2dUI_demo/2 - UI Layout Demo" and try using the sample text box. Does that one work?

One thing to check is the actual input textmesh game object in the hierarchy (in the demo its under the input control "TextInputWithButton" as "InputText"). It could be the text is actually updating but there's an issue with your font or UI camera that's preventing it from being rendered.
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: birdkingz on October 01, 2015, 11:52:10 am
I'm using tk2d 2.5.4 and I tested in the Demo scene it doesn't work.

It's not the font problem because I notice the Input Label doesn't get updated either whenever I type something.
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: LaserDinosaur on October 01, 2015, 10:48:35 pm
When you updated to 2.5.4, did you import the asset into the existing TK2DROOT folder? Or did you delete the TK2DROOT folder and then import?
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: birdkingz on October 02, 2015, 01:37:19 am
I just import without deleting the TK2DROOT
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: LaserDinosaur on October 02, 2015, 08:09:06 pm
My guess is it's that then - with TK2D (or any Unity asset) it's usually a good idea to delete the folder the plugin is in (eg. TK2DROOT) before importing the new version. If you don't, Unity just merges the two folders together and you end up with a mish-mash of two different versions.
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: birdkingz on October 05, 2015, 04:55:45 am
Tried. Still the same, it doesn't work on my machine!
Can the developer please verify about this?
What are the possible cause to this bug?
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: birdkingz on October 05, 2015, 05:08:50 am
Just found out that it seems like is an issue caused by Unity itself
http://issuetracker.unity3d.com/issues/osx-input-dot-inputstring-does-not-work-on-mac-osx?page=1#comments
Title: Re: tk2dUITextInput doesn't working in Unity 5.2
Post by: unikronsoftware on October 05, 2015, 11:09:05 am
Another unity bug :(
I tested this on Windows, never saw any issues. Its definitely worth posting what platform you're running this on next time, especially with the frequency of random unity bugs...