- Home /
Question by
illinar · Sep 08, 2020 at 09:17 AM ·
scripting problemassets
How to detect asset changes in a script?
For example a model or a texture have been updated and reimported. I need to check if that happened, or ideally have a callback.
In a case when asset file was changed I could use time/date of file creation, but if import settings were changed, should I check the .meta file time of creation/modification?
Is there any builtin method, version number, or callback, in Unity?
Comment
Your answer
Follow this Question
Related Questions
How to check if other Asset exists? 1 Answer
Why my Assets not loaded twice from the asset Bundle? 1 Answer
Updating Unity stuff is overwriting scripts I've previously edited? 1 Answer
Unity Editor not finding assets after updating to macOS 10.13? 10 Answers
Assets turning red and built-in classes not being recognized 0 Answers