- Home /
Question by
R0b_g · Oct 25, 2021 at 02:47 PM ·
uigameobjecteditoreditor-scriptingui image
Callback for when a Graphic (Ui) Component is Added to any GameObject using the Editor
I need a callback for when a Graphic component (Base class for Image, Text) is added to any component from the Editor and not from script. I can't use Reset()
event function because it requires a MonoBehaviour
to be attached, can't use OnHierarchyChanged()
as well because I can't fetch what sort of component was added, in fact it has no parameters I can use on the delegate. Thank you :)
Comment