If you want to do this for the Editor, use [EditorApplication.Beep();][1]
[1]: https://docs.unity3d.com/ScriptReference/EditorApplication.Beep.html
↧