Version: 2022.2

UnityEventBase.RemoveAllListeners

切换到手册
public void RemoveAllListeners ();

描述

Remove all non-persistent (ie created from script) listeners from the event.

所有持久性(即通过 Inspector 创建的)监听器均不受影响。