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

Is there a way to have Unity auto-compile shaders when Unity is not in focus?

Discussion in 'Shaders' started by ScottieBizzle, Dec 6, 2013.

  1. ScottieBizzle

    ScottieBizzle

    Joined:
    Nov 9, 2013
    Posts:
    17
    I developed a stand-alone graph-based code editor and every time I change my graph/shader I then have to click on Unity to give it focus, then it compiles the shader. It must be looking for changed files only onIdle when in focus. Is there any way to have it always check so that my users won't have to go back and forth constantly?

    Thanks,

    Scott
     
  2. IC_

    IC_

    Joined:
    Jan 27, 2016
    Posts:
    61
  3. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,495
    Could have your program look for active Unity editor processes and have them send a focus call to those processes and then back to this program. Or maybe make a plugin for them to use in their Unity editor that your external program can then communicate through, for example using Name Pipes.