How to detect when component values are pasted in inspector?

I have a MonoBehaviour with a custom inspector. When fields are pasted to using the build-in Copy/Paste Component I need the MonoBehaviour to update a bunch of things.

How do I detect the paste event in the custom inspector?

So far there is no callback for those functions, so you can’t actually differentiate if the user pasted values via the Unity builtin menu. However, you might be able to achieve what you want with custom menu items like the ContextMenu. You would create your own copy and paste methods there and use them instead. Not the cleanest, but your request sound pretty specific anyway, so why not make it a special method…

Yes, OnValidate is the way to go !