Question by
Reid_Taylor · Jan 08, 2021 at 09:08 PM ·
uibuttonevents
Inherited CustomButton class is called on all scripts of type CustomButton with same Parent.
Inherited CustomButton class is called on all scripts of type CustomButton with same Parent.
I have created a custom mouse and Unity's default ui buttons don't work with it. So I created a PointerEvents class that has virtual functions for Mouse Down, On, Over, Up, None. Then I created a Pointer Button class that inherits from PointerEvents and uses the Down function to invoke a UnityEvent. Problem is if there are multiple buttons in the same parent then they are all called when one is pressed... Any Ideas?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613022940im_/https://answers.unity.com/themes/thub/images/avi.jpg)