[Unity Tip] Calling code inside Unity Inspector using ContextMenu attribute
Added 2023-02-27 09:13:54 +0000 UTCUse a [𝗖𝗼𝗻𝘁𝗲𝘅𝘁𝗠𝗲𝗻𝘂] attribute to 𝗮𝗱𝗱 a 𝗵𝗲𝗹𝗽𝗲𝗿 𝗺𝗲𝘁𝗵𝗼𝗱 to be 𝗰𝗮𝗹𝗹𝗲𝗱 from the 𝗨𝗻𝗶𝘁𝘆 𝗶𝗻𝘀𝗽𝗲𝗰𝘁𝗼𝗿 🙂(no need for a custom Editor script)😎
You can call it from the 3 dots context menu of your script 👍