Version: 2022.2
public static void Beep ();

描述

播放系统哔哔声。

// Play beep sound on menu click

using UnityEditor; using UnityEngine;

public class BeepExample { [MenuItem("Examples/Play beep")] static void DoBeep() { EditorApplication.Beep(); } }