As my zMisc repo was starting to grow uncontrollably, I decided to extract the core scripts I use most, and place them in a seperate repo.
Features still present are:
An EditorWindow that lets you remember a number of gameObjects and quickly switch active selection between them. You can also Ping (highlight in hierarchy without selection) a given object to make sure this is the one you want to select, rearrange favourites, and toggle gameobjects on and off
Select objects named the same
How many times you had to make the same change to dozens od objects somewhere in the hierarchy tree, that happened to be called exactly the same. Too many times. This simple tool crawls the hierarchy in the editor and selects objects named the same, like Text or Image or Button, up to a desired depth up the tree (not to select ALL THE objects, but only ones within a given depth limit from currently selected
RectExtensions / zExtensons
A large and fast growing collection of extension methods, out of which probably the most useful ones are for working with RectTransform (RectTransform extensions), theres shortcuts for setting just one dimension x/y for a rect - setSizeX, setLocalX, setRelativeLocalY, setRelativeSizeX (relative ones take 0-1 values and take into account the parent rect size), theres a whole set of Anchor setting methods (the min/max convention used in unity just consfues me so theres setAnchorRight, setAnchorLeft, setAnchorX, setPivotX etc theres GameObject getChildren, Transfom.RemoveChildren(), Color.Random(), Color.Alpha(float), rectTransform.AddChild (will make sure it streches), and some other stuff, it just grows
I am not a great fan of some default behavious of UnityEditor, for exapmle why does duplicating an object moves it to the bottom of the current hierarchy level (now you can duplicate in place - leaving the clone as next sibling to active object), there’s plaste in place (keeps localposition instead of absolute position), create a duplicate of the object but without its children, hiding objects from a given layer in hierarchy (via HideFlags), Duplicate in place, Paste as child, create Image child,
An ever growing collection of smail tools meant to ease the proces of wiring an event network in Unity Editor without having to create a new file for evry tiny bit of functionality.
Starting from a set of UnityEvent
The list is likely to grow as I keep using them in projects.