Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Error inputfield

Discussion in 'Windows' started by corrivai, May 16, 2016.

  1. corrivai

    corrivai

    Joined:
    Mar 14, 2016
    Posts:
    12
    Hi, I have a touch screen. When i tap on InputField control the console show me this error:

    Cattura.PNG

    How i can resolve?

    thanks
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    You call a function from not allowed thread, like for ex., you can only access XAML UI elements from UI thread.
    To catch this place, you could enable exceptions in Visual Studio, Debug->Windows->Exceptions, launch the program and continue until you reach that exception.