Hello Guest

Author Topic: tk2dUITextInput doesn't working in Unity 5.2  (Read 6726 times)

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
tk2dUITextInput doesn't working in Unity 5.2
« 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.

LaserDinosaur

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #1 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).



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.
« Last Edit: October 01, 2015, 05:41:15 am by LaserDinosaur »

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #2 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.

LaserDinosaur

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #3 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?

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #4 on: October 02, 2015, 01:37:19 am »
I just import without deleting the TK2DROOT

LaserDinosaur

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #5 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.

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #6 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?

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #7 on: October 05, 2015, 05:08:50 am »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dUITextInput doesn't working in Unity 5.2
« Reply #8 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...