- Home /
Question by
mrdoktor1974 · Jun 23, 2015 at 02:34 PM ·
eventsystemevents
Is it possible to "trickle" down events or listen to events on parent gameobjects using UnityEnging.EventSystem?
I want to be able to listen if a UnityEvent is fired on a another GameObject. Is there any way of doing this with UnityEngine.EventSystem?
My example is something like this: Each page in my menu system has a script called MenuView. MenuView triggers the event OnMenuViewDidAppear when the page has appeared after animating in.
ExecuteEvents.Execute<IMenuViewDidAppearHandler>(gameObject, null, (x,y)=>x.OnMenuViewDidAppear());
Now I want a child object of the page to get this event too. Is there any way of making the event "trickle" down to the child or having the child listen to this event using the UnityEngine.EventSystem or do I have to resort to C# delegates?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613201318im_/https://answers.unity.com/themes/thub/images/avi.jpg)