MaterialButton Drag and Drop both ways


hello to every one reading this post,

I am writting a script that uses MaterialButtons, i ve been able to create images from the material editor previews, it is working well, the rest of the code is working as well, but while testing it, i noticed that you can drag and drop both ways from the material editor to the button and the other way around, but i can’t find no events to refresh my buttons with the preview of the material that i drag and drop to my script, if i drag it back to the material editor i see that it is working but i would like to be able to refresh the image with the correct preview, does any one have a clue on how to achieve this?