#Remove onclick listener (set in the inspector) from code

1 messages · Page 1 of 1 (latest)

tawny raft
#

Is there a way to do this? RemoveAllListeners() does not remove the listeners that are set in the inspector.

formal latch
#

The listeners set in the inspector are meant to be persistent. If you want to completely wipe out the event, then just create a new instance of it instead