Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

avoid UnitySetInput(bool enable) in 4.2.1f4, causes lockups?

Discussion in 'Windows' started by tswalk, Sep 4, 2013.

  1. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    is anyone else experiencing this with latest update 4.2.1f4 or just me... when executing method UnitySetInput(); the Windows App locks up?
     
  2. pwkmikek

    pwkmikek

    Joined:
    Nov 21, 2012
    Posts:
    2
    I've found that UnitySetInput throws an access violation if called from the app thread (from within InvokeOnAppThread). It seems to work if called from the UI thread.
     
  3. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    in my case it was within the InvokeOnUIThread and throws the access violation.. they're not able to replicate the issue, so I'm at a bit of a loss on this one.

    for now, i'm chalking it up to something stupid I've done or something odd after upgrading.. I don't have time to test a cleaned up or fresh sample build yet.