Just a collection of Unity editor utilities mostly found on random forums.
Can be installed using VPM for VRChat from here!
A menu entry and hotkey for toggling the lock on the Inspector window currently under the cursor.
Entry is found in Tools/Unity Utils/Toggle Inspector Lock
, and the default binding is Alt + E
.
Keeps the Scene view focused when entering play mode instead of switching to the Game view.
Enabled from Tools/Unity Utils/Enable Keep Scene Alive
. A GameObject is created in the scene with a toggle to enable/disable the script.
Note for Unity 2021.2 and newer: This is no longer necessary, you can now go to the Game tab and change Play Focused
to Play Unfocused
.
Find materials based on a specific shader. Found in Tools/Unity Utils/Shader Occurance
.
Copy properties from one component to another in bulk.
Script Properties
and Script Fields
are all fields and properties on the component.
Properties
are manually added properties that require special steps to modify, like for example Mesh Renderer blend shapes. More of these can be added in Quirks.cs
. Please send a PR if you add any useful ones!
Dragging one or more gameobjects to the header of the Destinations
list will add all componets matching the type of Source
to the list.
Note that not all properties this script modifies are undoable, so be careful.
Found in Tools/Unity Utils/Component Property Copy
, or in the context menu on components.
Save the selected texture to a PNG file. Useful for exporting temporary in-memory textures in play mode.
Note that texture assets must have the Read/Write Enabled
option set for scripts like this one to access them.
Found in Tools/Unity Utils/Save Selected Texture
.
Merges a list of animator controllers into one. Animator layer contents is referenced, not copied, so changes on the master controller will propagate to the child controllers.
To enable, select an animator controller and press "Enable Controller Merger". Note that this will wipe any layers already on this controller, so use with caution!
Display layer index of currently selected animator layer. Useful for VRChat's "VRC Animator Layer Control", since it uses layer indexes instead of names.
Found in Tools/Unity Utils/Show Animator Layer Index
.
Takes a screenshot of the game view.
Found in Tools/Unity Utils/Capture Game View
.
Aligns a camera with the scene view.
This is a component that can be added to any game object.
Refresh the screen continuously. Useful for tweating material properties on shaders with time-based effects.
Found in Tools/Unity Utils/Always Update Screen
.
Newly imported assets will use any preset saved in a parent directory of that asset.
Enabled in Tools/Unity Utils/Enable Pesets Per Folder
.