Extend editor with rotation script

Hi, i never made a script which extened editor. I want to make something like this - open extended editor, point couple prefabs, hit the button and rotate randomly object (on editor we can choose if we want rotate by all axles or, for example, y or x)

You’ll want to create a custom editor window for this - it’s a window that can be docked wherever just like the console/game window etc. Docs here.

To figure out which things are selected, you use the Selection API.

You could also just get something off the wiki.