Author Topic: [UIInput] Add UIInput in Runtime.  (Read 2233 times)

adam718

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 60
    • View Profile
[UIInput] Add UIInput in Runtime.
« on: December 11, 2012, 02:17:50 AM »
Hi!
I added UIInput in runtime but it didn't work correct. (only when adding it in RunTime)
Exactly, when forcus lost, Input.compositionString is not empty with 'select' var = true.

Should I do something additionally to UICamera when I add it in Runtime?

Help me.
Kind Regards,
Adam.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [UIInput] Add UIInput in Runtime.
« Reply #1 on: December 11, 2012, 05:33:20 AM »
I assume by UICamera you mean UIInput?

No, there is nothing. In fact when you create a new Input Field via the widget tool, it's also created via code -- same as all other widgets.

My suggestion is look at the code that creates it, then compare it with what you did. My guess is you forgot to set some value.

adam718

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: [UIInput] Add UIInput in Runtime.
« Reply #2 on: December 11, 2012, 05:39:57 AM »
I tried to make prefab and instantiate it in runtime.
I also tried to create it by widget tool in runtime.
But the result is same.

Is there anything that I should do for priority of new UIInput in UICamera.
So weird.