UnityEventBase.RemoveAllListeners

public void RemoveAllListeners();

Description 描述

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

All persistent (ie created via inspector) listeners are not affected.