Hi,
The easiest solution is to use the
Ecosystem browser, it's an editor window, that lets you search for custom actions, and you can in one click have them downloaded and installed for you in your project.
otherwise, in this case, create a c# script in your assets browse ( in the Create button), name that script SwapSingleSprite ( the same name as the class), and then in that script, replace everything with the content of that thread code snippet.
Bye,
Jean