Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity button onclick remove listener

 yourButtonGameObject.GetComponent<Button>().onClick.RemoveListener();
 //or in case you need to remove all listeners
 yourButtonGameObject.GetComponent<Button>().onClick.RemoveAllListeners();
 
PREVIOUS NEXT
Tagged: #unity #button #onclick #remove #listener
ADD COMMENT
Topic
Name
9+9 =