unity run editor function everytime I save a script
I have used a script in which if placed in my 'Editor' folder adds creation date and time to my script. As a result, I know exactly when my script was created. I would like to write a editor script that runs on all my scripts and If I save a script during development, It should search for a variable (updateTime) and replace the date and time with my current date and time. I send out scripts to others for integration and It is really hard to remember all scripts where i make minor changes after last send.
Any minor script to do this or how to achieve it is appreciated.
I know we have to use 'OnWillSaveAssets' but how to use it, I am unable to understand.
Your answer
Follow this Question
Related Questions
Using #if UNITY_DEBUG in DLLs 0 Answers
/Editor Scripts Organization with 2017.3 Assembly Definition Files 2 Answers
Custom Object2Terrain script creates "curtains" on the edges. 0 Answers
Editor tool for selecting inverse dependencies, no-longer works in Unity 5.4? 1 Answer
How to add code hints to Notepad++ ? 0 Answers