Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to keep the Editor GUI activein the background.

Discussion in 'Formats & External Tools' started by CFprime, Feb 8, 2015.

  1. CFprime

    CFprime

    Joined:
    Feb 6, 2015
    Posts:
    27
    We are trying to get the Editor to import and update files without having to click and bring the Editor to the front.

    Example: We are making a model in 3dsmax. Export the FBX to the Unity asset directory. Unity waits until you click on it's GUI to reload the assets. We want this to happen when Unity is in the background. So we don't have to wait for it to update.

    Basically how to we set the Editor to "Run in Background" like you do to a Player that you compile.

    Thanks...
     
  2. Ben-Stoneman

    Ben-Stoneman

    Services Support

    Joined:
    Jan 19, 2012
    Posts:
    52
    Unfortunately we do not provide anything that allows this natively.

    You may find that it is just the way Unity is, see "Creating and updating assets": http://docs.unity3d.com/Manual/ImportingAssets.html

    It states: "When you return to Unity or launch it, the added file(s) will be detected and imported.".
     
  3. ramseynasser

    ramseynasser

    Joined:
    Jul 8, 2013
    Posts:
    6
    Also having this issue. Before Unity 5, this used to work:

    Code (CSharp):
    1. EditorApplication.update += MyUpdatingFunction;
    If you set the Player's settings to 'Run in Background', MyUpdatingFunction would continue to be called even when Unity was not in focus, as in this post.

    Has this changed? If so, is there any other hook to run code while Unity is not in focus? I am one of the Arcadia developers, and our live coding experince depends on this. This is a breaking change for us and our community.
     
  4. CFprime

    CFprime

    Joined:
    Feb 6, 2015
    Posts:
    27
    I've found it really frustrating that I can make my game update in the background, but not the Editor that I use to make my game (Whaaa!?)

    I'm in Unity 4.x. I am not aware that it has or hasn't changed their response was merely "Not and intended B.S."

    Thanks for the reply. I'll give your technique a try!
     
  5. CaronteDev

    CaronteDev

    Joined:
    Mar 12, 2015
    Posts:
    75
    Having this issue as well. In Unity4 this used to work, but in Unity5 we can't update the editor if it's not focused. Does anyone have a solution or workaround?
     
    Last edited: May 18, 2015
  6. CFprime

    CFprime

    Joined:
    Feb 6, 2015
    Posts:
    27
    Bump!
     
  7. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    378
    I too would like to know if there is a solution to this!?
     
  8. davebuchhofer

    davebuchhofer

    Joined:
    Nov 9, 2007
    Posts:
    126
    Same, have one of you submitted a bug report?
     
  9. CFprime

    CFprime

    Joined:
    Feb 6, 2015
    Posts:
    27
    I went down the support route, but did not file a bug report. I do not know if anyone else has...

    Has anybody found a work around yet?
     
  10. CFprime

    CFprime

    Joined:
    Feb 6, 2015
    Posts:
    27
    Just found this for OSX. I'll look into it and see if I can be ported to Windows.