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

Option to Announce "Perfect!" Upon Compiling with no Errors

Discussion in 'General Discussion' started by Jmather, May 24, 2020.

?

Would it be nice to have a plugin that announces 'Perfect!' upon compiling with no errors?

  1. Yeah, every time!

    20.0%
  2. Yeah, some of the time, randomly.

    0 vote(s)
    0.0%
  3. Yeah, but only under specific circumstances.

    20.0%
  4. No.

    40.0%
  5. No, that's dumb and I'm grumpy today >:(

    20.0%
  1. Jmather

    Jmather

    Joined:
    Aug 17, 2015
    Posts:
    1
    It may be that I've been cooped up for so long due to the pandemic, or maybe it's just the weekend and I've been listening to to much Joe Satriani recently. I'm not sure why Joe Satriani makes me think of Street Fighter, but while I was plugging away at making some scripting changes, and kind of bouncing up and down in my chair to the music, I switched back to Unity after making quite a few changes and everything compiled just fine and the announcer's "Perfect!" from SF2 went off in my head!

    I thought: 'hmm! Wouldn't it be cool if Unity did that every now and then when I made a bunch of changes and then compile with no problems?". Again, it's a holiday weekend and maybe I'm just being silly, but if anyone knows how to make a plugin like that, or if it already exists, then that would be awesome.

    What do you think?
     
    Last edited: May 24, 2020
  2. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    Thats something you can do today with some ~50 lines of code. For a time I had the age of empires II win fanfare play every time a build completed. It was nice the first couple days, everyone in the office would celebrate a successful build. Eventually we all got sick of it.
     
  3. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    I can recommend using build agents plus release pipelines, its very visual and nice

    upload_2020-5-24_18-5-36.png

    You can also see exactly which work items are going out in said release
     
    angrypenguin likes this.
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    Unity recompiles code all the time. This thing would get annoying in about 10 seconds of work.
     
  5. TJaenichen

    TJaenichen

    Joined:
    Oct 12, 2014
    Posts:
    29
    In any /Editor directory:

    Code (CSharp):
    1. using UnityEditor;
    2. using UnityEngine;
    3.  
    4. [InitializeOnLoad]
    5. public class FinishCompilationNotification : ScriptableObject
    6. {
    7.     static FinishCompilationNotification()
    8.     {
    9.         Debug.Log("<color=green>Done compiling</color>");
    10.     }
    11. }
    12.