Skip to content

Other Utilities ​

A collection of small features, each done with a single menu command.

Assets / Copy GUID ​

Right-click an asset in the Project window → Copy GUID copies that asset's GUID to the clipboard.

Assets / Copy Assets With Dependency ​

In the Project window, select all the assets you want to duplicate at once, then right-click → Copy Assets With Dependency. The selected assets are duplicated in full with new GUIDs, and references between the copies are rewired to point at each other. Useful for cases like "creating a material variant of a distributed model without overwriting the original".

  • Dependencies are not collected automatically — include any dependent assets you want copied along (materials, textures, etc.) in the selection
  • References to assets not included in the selection are kept pointing at the original assets
  • Selecting a folder duplicates it, structure and all, as <folder name> copy/
  • .meta files are copied with only the GUID replaced, keeping the import settings
  • Folders whose contents can't be read (such as a junction created by a non-administrator user) are skipped (Unity can't see their contents either)
Credits

A modified port of Narazaka's CopyAssetsWithDependency (Zlib License; original work: k7a's Qiita article).

Copy All Component Properties ​

Two items are added to a component's ⋮ menu (or its context menu):

  • Copy Component All — copies every property
  • Paste Component All As New — pastes it as a separate component (an instance independent of the original)

Use this when you want to duplicate everything, references included — something Unity's standard Copy Component / Paste Component As New does not do.

StateMachineBehaviour Copy & Rename ​

Added to the ⋮ menu of a StateMachineBehaviour attached to an Animator State:

  • Copy Behaviour / Paste Behaviour As New — duplicate it as a separate instance
  • Rename — rename the Behaviour sub-asset

Humanoid Pose Reset ​

Reset Humanoid Pose is added to the ⋮ menu (or context menu) of the Animator component. It returns all the bones you moved while posing back to the model's import pose (T-pose, etc.) at once.

  • Applies to every mapped Humanoid bone (including fingers, eyes, and jaw). Scale is left untouched
  • The reference pose is taken from the Avatar asset's own skeleton data, so it also works for models whose Avatar lives outside the FBX (such as a copied .asset)
  • If the model is not Humanoid or no Avatar is set, a dialog tells you so and nothing is changed. The operation can be reverted with a single Undo
Credits

Based on HumanoidPoseResetter from gatosyocora's VRCDeveloperTool (zlib License), reimplemented with a different way of obtaining the reference pose.

EditorOnly Tag One-Key Toggle ​

GameObject/Toggle EditorOnly Tag (Alt+Shift+S) — see Hierarchy Extension for details.

Remove Missing Scripts (Remove Missings) ​

Right-click a GameObject in the Hierarchy → SataniaCustomEditor/Remove Missings. Removes Missing Scripts (components whose script can't be found) from the selected GameObjects and all of their children (including inactive ones).

  • Works with multiple selection too. A dialog shows how many were found, and 削除 (Remove) runs it
  • If there are no Missing Scripts at all, the Hierarchy just shows "Missing Script はありませんでした" (No Missing Scripts found)
  • A single Ctrl+Z reverts it (except for prefab files rewritten by 元の Prefab から削除 (Remove from the source prefab), described below)
  • The result appears as a Hierarchy notification and in the Console log

If a prefab instance contains Missing Scripts that live in the source prefab itself, the dialog lets you choose how to handle them:

ButtonAction
削除 (Remove)Removes them on the prefab instance in this scene. The source prefab file is left unchanged
元の Prefab から削除 (Remove from the source prefab)Opens the prefab file, removes them, and saves it. It also follows nested prefabs / the bases of Prefab Variants, so they disappear from every other scene that uses the same prefab (can't be undone with Ctrl+Z). Prefabs inside read-only packages (such as ones installed via VPM) are skipped

On Unity 2019.4

On 2019.4, removing them on a prefab instance in the scene doesn't stick: the ones from the source prefab come back when you reopen the scene. So the dialog instead asks you to choose between 元の Prefab から削除 (Remove from the source prefab) and Unpack して削除 (Unpack and remove — removes them after breaking the link to the prefab; can be undone with Ctrl+Z).

Sort SerializedUdonPrograms Worlds SDK ​

Main menu さたにあしょっぴんぐ/エディタカスタマイザー/Misc/Sort SerializedUdonPrograms (Satania Shopping / Editor Customizer / Misc / Sort SerializedUdonPrograms) — for world creation. Sorts the assets scattered under SerializedUdonPrograms into the folders of their corresponding Udon programs.

Package Manager Favorites ​

No more switching tabs and searching every time for the packages you use often.

  • When a package is selected, a ★ button appears next to the Install button in the details pane. Click it to add the package to / remove it from your favorites (gold when added)
  • A ★ Favorites tab is added to the scope dropdown, listing the packages / assets you have registered
  • The "+" button at the top right of the panel registers things that do not appear in the Package Manager (files / folders can also be dragged and dropped onto the panel):
    • .unitypackage files
    • UPM / VPM format folders (a folder containing package.json; the display name and version are read from package.json)
    • git URLs (https://….git?path=…#ref form; the display name is guessed from the URL and replaced with the real package name after the first Install)
  • You can act directly from the rows in the list:
    • Install (UPM / git URL / UPM folder) — add it to the project without going through the Package Manager. git URLs are added from the URL, UPM folders as a file: dependency (shows 「導入済み」 (Installed) when already in the project)
      • When a git URL install is rejected by git's ownership check (projects on drives that do not record ownership such as exFAT / FAT32 fail with fatal: not in a git directory / dubious ownership; the Package Manager's own Add package from git URL fails the same way), a dialog explains the cause and offers the workaround command git config --global --add safe.directory "<drive>:/*" (「コマンドをコピー」 copies it to the clipboard)
    • Import (My Assets / .unitypackage) — import the downloaded or file-based .unitypackage directly (shows guidance if it has not been downloaded yet)
    • 開く (Open) — show that package in the Package Manager. For .unitypackage files and UPM folders that are not installed, it opens the location in Explorer
    • Entries whose path can no longer be found (moved or deleted) are shown in red and their Install / Import buttons are disabled (delete still works)
  • When you ★ a package that came from git or a local (file:) folder, the URL / folder is recorded with it, so it can be installed as-is in another project
  • Categories — With 「まとめ方」 (Grouping) at the top right of the panel, choose whether to group the list under categories you create or under kinds (UPM / git URL / UPM・VPM folder / .unitypackage / My Assets)
    • Create a category with 「まとめ方」 → 「新しいカテゴリー...」 (New Category...). Right-click a row → 「カテゴリー」 (Category) to move it to an existing category, a new category, or 「未分類」 (Uncategorized). Each entry belongs to one category
    • Click a header to collapse it (the state is saved). Right-click a category header to rename it, move it up / down, or delete it. Deleting a category keeps its entries and moves them back to Uncategorized
    • If you have not created any category, the list stays flat without headers, as before
  • Batch install — Press 「選択」 (Select) at the top right of the panel to enter selection mode, which shows a checkbox on each row (clicking the name also toggles it). Select entries and press 「選択したものを入れる」 (Install Selected) to install / import them one after another
    • Packages (UPM / git URL / UPM・VPM folder) are installed together first, and then .unitypackage / My Assets entries are imported one at a time in list order (.unitypackage files often depend on packages)
    • Progress is shown in the panel. It continues where it left off even if scripts are reloaded midway, keeps going if one item fails, and shows a summary at the end (installed / failed / skipped)
    • Rows that are already installed, whose path cannot be found, or My Assets that have not been downloaded cannot be selected
    • Turn on 「インポートの確認画面を出す」 (Show the Import Window) to get Unity's import window (where you pick the contents) for each .unitypackage / My Assets entry (off by default = import everything as is). When it is off, you are asked to confirm before starting, because files with the same name in the project get overwritten
    • Press 「中止」 (Stop) to stop partway (the item currently being installed cannot be stopped). Items whose outcome could not be determined, for example because the import window was closed, are listed as 「結果が分からない物」 (Outcome unknown) in the final summary
    • Right-click a header → 「この中の入れられる物をすべて選択」 (Select Everything Installable Here) to select a whole category (or kind) at once

Unity 2022.3 only

On Unity 6000.0 and later, the internal structure of the Package Manager has been reworked, so this feature is disabled (support planned).

Game View Screenshot / Recording ​

Moved to the Game View Extension page.

Scene View MSAA / Selection Outline ​

Moved to the Scene View Extension page.

Window Tab Context Menu Extension ​

Toggle it on the DockArea item of Editor Setting. For developers, this can add 「WindowのTypeを出力」 (Print Window Type — logs that window's class name) to the tab's context menu (off by default; the toggle is in Editor Setting).

The same menu also has 「スクリーンショット」 (Screenshot), which captures that window (see the section below).

Window screenshots ​

Captures an editor window (Inspector / Animator / Console / windows of third-party editor extensions, etc.) to a PNG exactly as it looks. It works even when the window is hidden behind other windows or sits behind another tab.

From the tab context menu ​

Right-click a window's tab → choose from スクリーンショット (Screenshot). What gets captured is the content of the window (the tab strip and the frame are not included).

ItemAction
ファイルに保存... (Save to file...)Lets you choose where to save it, and saves it as a PNG
クリップボードにコピー (Copy to clipboard)Copies it as an image as is. You can paste it into chat or image editing apps (Windows only; this item does not appear on Mac / Linux)
既定のフォルダに保存 (Save to default folder)Saves it to the project's Temp/SataniaCustomEditor/Screenshots/ as "type name_date and time.png". The save location is printed to the Console
  • The default folder is outside Assets, so capturing does not trigger an import. It is deleted together with Temp when you close Unity, so use 「ファイルに保存...」 to save the pictures you want to keep somewhere else
  • A window behind another tab is brought to the front for just a moment, captured, and then the original tab is restored
  • Whether the menu is shown can be switched with 「スクリーンショット」 (Screenshot) on the DockArea item of Editor Setting (default ON). The tab menu requires Harmony
  • The main menu さたにあしょっぴんぐ/エディタカスタマイザー/Misc/ウィンドウのスクリーンショット (Satania Shopping / Editor Customizer / Misc / Window Screenshots) has 「フォーカス中のウィンドウを撮る」 (Capture the focused window), 「エディタ全体を撮る」 (Capture the whole editor), and 「保存先のフォルダを開く」 (Open the save folder) (these work without Harmony and without the VRChat SDK). The result is printed to the Console as one line

To capture the content of the Game view with a specific resolution or with transparency, use the screenshot feature of the Game View Extension (the feature here captures a window exactly as it looks).

From scripts / MCP (AI) ​

This is the entry point for an AI that operates Unity through an MCP such as unity-mcp to check how the UI it built looks. It captures without showing a dialog and without bringing Unity to the front.

csharp
using net.satania.customeditors.editor;

string list = EditorWindowScreenshot.List();                          // list of the open windows
string shot = EditorWindowScreenshot.Capture("InspectorWindow");      // capture one (type name / title / id from the list)
string all  = EditorWindowScreenshot.CaptureAll(maxSize: 1600);       // the whole editor (the main window as one image)
  • The return value is a JSON string. When status is ok, path holds the path of the saved PNG (anything to be aware of is listed in notes)
  • When several windows of the same type are open (two Inspectors, for example), nothing is captured and the candidates are returned (status = ambiguous), so call it again with an id from candidates
  • Capture also accepts the window itself (an EditorWindow), for capturing a window you opened yourself
  • You can specify the save location with outPath, the upper limit of the longer side with maxSize (downscaling), and includeBase64: true to also get the PNG data back as base64
  • A window that is behind another tab is brought to the front for a moment, captured, and then the original tab is restored. A text field that was being edited is committed when this happens. If you do not want tabs to move, pass allowTabSwitch: false; nothing is captured and status = hidden_tab is returned
  • To capture a window that is not open, EditorWindowScreenshot.OpenTab<T>(title, out opened) opens it as a tab in the same dock as the Scene view, without moving focus (when the Scene view is not docked anywhere, it opens nothing and returns null; the third argument changes the window type to dock next to)
  • To close a window you opened for checking, you can use EditorWindowScreenshot.CloseWithoutFocus(window) (window.Close() can bring Unity to the front when the window is docked). Closing a tab that is in front has the same effect as switching tabs: a text field that was being edited is committed
  • The Inspector's content is rebuilt on the spot before it is captured, even right after the selection has changed
  • On high-DPI displays (when the display scale is not 100%) and on Mac / Linux, the size and orientation of the picture have not been verified

How to call it and how to read the return values are summarized in the bundled Claude skill sce-editor-window-screenshot. Install it from the Claude スキル (Claude Skills) item of Editor Setting (or from 「Claude スキル」 in the Gimmick Bundle window), and Claude Code reads it on its own when it needs it. The skill is only included in the VCC (VPM) distribution.

Fix for FBX materials staying None when imported separately ​

If an FBX and the materials its Model Importer's Materials tab points at (Remapped Materials) come in separate unitypackages and you import the FBX side first, the model's materials (and those of prefabs based on it) stay None even after you import the materials. This happens because the FBX's import result does not depend on the remapped materials, so importing the materials does not trigger a reimport of the FBX (the same on Unity 2019.4–6000.5). It only happens when that editor has never seen the remapped materials before, so you run into it when installing an avatar into a fresh project for the first time.

SCE remembers "remapped materials that are not in the project yet" when an FBX is imported, and automatically reimports the FBX once those materials arrive. A line is printed to the console when it reimports. Toggle it in the BugFix section of Editor Setting (on by default). It needs neither the VRChat SDK nor Harmony.

  • What it remembers is stored under the project's Library/, so it still works if you import the FBX and the materials on different days, or restart the editor in between
  • It reimports as soon as any one of the remapped materials arrives (so what did arrive gets fixed even if the rest never does)
  • Prefabs whose overrides point at the materials directly are not affected by this bug (they fix themselves when the materials arrive), so SCE leaves them alone

Models that are already stuck at None (such as avatars imported before this feature) can be fixed by right-clicking the FBX or a folder in the Project window → マテリアルの割り当てを反映し直す (Re-apply Material Remaps). Of the selection (including everything under a folder), only models whose remapped materials exist but are missing from the model are reimported.

TIP

In projects where the same FBX was deleted and imported again, Unity may print the warning Importer(FBXImporter) generated inconsistent result for asset … when the model is reimported. That is Unity noticing that the import result does not depend on the materials (this very bug), and it is harmless.

Workaround for the VPM Resolver's blank, title-less windows ​

VRChat's VPM Resolver (com.vrchat.core.vpm-resolver) checks package resolution from [InitializeOnLoad] at startup and, if something is unresolved, shows a confirmation dialog whose "Show Me What's Missing" branch opens the Package Resolver window. The same code also runs inside Unity 2022.3's asset import workers (separate Unity.exe -batchMode processes), where the dialog is auto-cancelled and the code proceeds to create the window, leaving blank white, title-less Unity windows that appear only in the taskbar (one per started worker). This is unfixed as of Resolver 0.1.29.

SCE works around it. It only acts in processes without a UI (import workers / batch mode) and does nothing in the normal editor. Toggle it on the BugFix item of Editor Setting (default ON).

  • If it initializes before the Resolver, it makes that process skip the startup check altogether
  • If the window was already created, it closes it once all initialization has finished (Logs/AssetImportWorker*.log shows a 「VPM Resolver がヘッドレスプロセス … に作ったウィンドウを閉じました」 (closed the windows created in a headless process) line)
  • As a safeguard, opening the Package Resolver window is also disabled in that process

TIP

The root cause disappears if you fix the unresolvable entries left in the project's Packages/vpm-manifest.json (the state where the Resolver dialog appears at every startup).

Workaround for the VPM Resolver freezing domain reloads ​

The VPM Resolver's Package Resolver window (VRChat SDK/Utilities/Package Resolver, or opened by "Show Me What's Missing" in the startup dialog) re-downloads the listings of all repositories in the background every time it opens and after every domain reload (this can take tens of seconds if you have many repositories registered). If the next reload (saving a script, for example) arrives in the middle of that, the editor occasionally stays at "Reloading Domain" forever (unfixed as of Resolver 0.1.29). The Resolver swallows the abort used to stop it during the reload and then waits forever for a network response.

SCE prevents this by stopping the Resolver's background work from going to the network once a reload has started. This one also works in the normal editor. Toggle it on the BugFix item of Editor Setting (default ON).

  • Only the work after a reload has started is stopped. The Package Resolver window otherwise behaves as usual (fetching the list, Refresh)
  • After the reload, the window fetches its list again as usual

TIP

The window opens at every startup when the versions written in Packages/vpm-manifest.json differ from the packages actually installed. Fixing that mismatch stops the window from opening, which also makes this problem much less likely.

Workaround for Behaviour errors right after a reload (VRChat SDK) ​

If scripts reload (saving a script, entering Play Mode, and so on) while an Animator state is selected (with its Behaviours shown in the Inspector), the inspectors of some VRChat SDK Behaviours (VRC Animator Temporary Pose Space / VRC Animator Locomotion Control) may log a NullReferenceException (EditorStyles.get_miniButton; the stack trace shows VRCAnimatorSetViewEditor.OnEnable / VRCAnimatorLocomotionControlEditor.OnEnable) to the Console (not fixed as of SDK 3.10.6; one or two per Behaviour). The inspectors use editor styles when they are created, but right after a reload nothing has been drawn yet. It is harmless, but it clutters the Console.

SCE postpones the inspector setup (OnEnable) only at that moment and does it when the inspector is first drawn. Toggle it in the BugFix item of Editor Setting (default ON).

  • With an SDK version where this is fixed (the setup no longer uses styles), it does nothing (the BugFix item says there is nothing to work around)
  • It works in projects with the VRChat SDK (Avatars) and Harmony

Workaround for the VRChat SDK's Multi-Platform Build never stopping ​

In the VRChat SDK Builder, pressing "Multi-Platform Build & Publish" (the name of the Build & Publish button when two or more platforms are selected) can keep uploading the same world / avatar (PC → Android → iOS → PC …) even after every platform is done (unfixed as of SDK 3.10.6). It happens when the platform you press it on is the last one in the selected order (always for worlds; for avatars, when you press it on PC or when PC is not in the list). Platforms are appended in the order you select them, so for example selecting Android → iOS → PC and pressing it on PC hits it.

SCE rotates the list when the build starts so that the current platform comes first (Android → iOS → PC pressed on PC becomes PC → Android → iOS), so the SDK finishes through its normal path. A line is written to the console when it rotates. Toggle it on the BugFix item of Editor Setting (default ON).

  • For avatars, when PC is in the list and you press it on another platform, the SDK itself reorders the list to build PC first and finishes correctly, so SCE does nothing
  • As a safety net, if the SDK still tries to go around again once every platform is built and it is back on the starting platform, SCE ends it right there without an extra build (the SDK's usual completion notice is shown, and a warning line is written to the console)

TIP

If it is already uploading endlessly, VRChat SDK > Utilities > Clear Multi Platform Build State stops it (it stops once the current platform has been uploaded; an InvalidOperationException: Sequence contains no elements error is logged once at that point, which is harmless. The editor stays on the platform it stopped on, often Android or iOS, so switch back if you need to). You don't need to restart Unity. Without SCE, you can avoid it by selecting the platforms so that the one you press it on comes first (select only the current platform once, then add the others).

When Harmony does not work (Apple Silicon Macs) ​

On Apple Silicon Macs the Harmony bundled with the VRChat SDK (0Harmony 2.0.5) does not support macOS memory protection (W^X), so every Harmony patch of SCE / Modular Avatar / NDMF fails with mprotect returned EACCES (SCE's Harmony-based features do not work).

SCE detects the failure on the first patch and reports a single warning instead of one exception per patch (it retries once after all initialization has finished, so if the package below is installed the patches apply regardless of initialization order). If they still fail, on macOS a dialog asks whether to install anatawa12's Harmony Patches for Apple Silicon (native & Rosetta) (com.anatawa12.apple-silicon-harmony). 「インストールする」 (Install) fetches it from the VPM repository (https://vpm.anatawa12.com/vpm.json), adds it to the project and registers the repository in ALCOM / VCC (projects without the VPM Resolver get the add-repository page instead). 「今後表示しない」 (Don't Show Again) can be reverted on the BugFix item of Editor Setting, which also has an install button.

Light Probe Generator (for worlds) ​

Open it from the main menu さたにあしょっぴんぐ/エディタカスタマイザー/Misc/Light Probe Generator. It automatically places LightProbes in a grid within a specified Box range.

  • The 配置領域 (Placement Area) is shown as a green frame in the Scene view while the window is open, and can be edited directly by dragging its corners/faces and the center handle. 「選択オブジェクトから範囲を取得」 (Get Range from Selected Objects) lets you set it in one step from the world's terrain, etc.
  • 配置間隔 (m) (Spacing (m)) sets how fine the grid is. The grid is laid out centered within the area
  • Multiple 配置禁止領域 (Exclusion Zones) can be added (shown as red frames in the Scene view, and editable there). Grid points inside an exclusion zone are skipped
  • The output is a LightProbeGroup in the scene. If a group with the same name already exists, it is updated in place instead of being recreated, so you can regenerate as many times as you like while adjusting the range. When there are only a few probes, yellow preview points also mark the placement positions

Udon Exposure Tree Exporter Worlds SDK ​

From the main menu さたにあしょっぴんぐ/エディタカスタマイザー/Misc/Udon Exposure Tree Exporter, write out files that list every type and member Udon (UdonSharp) can call, and the ones it cannot. The verdicts are the same as UdonSharp's "Class Exposure Tree" window (VRChat SDK/Udon Sharp/Class Exposure Tree), turned into files that are easy to search.

  • Pick an output folder (Assets at first) and it writes these three files (<ver> is the VRChat SDK version):
    • exposure-sdk-<ver>.tsv — one member per line, for searching "can Udon call this API?"
    • exposure-sdk-<ver>.md — ✅ / ❌ per type, grouped by namespace, with the share per type
    • udonsharp-behaviour-sdk-<ver>.md — the events and members an UdonSharpBehaviour can receive
  • Fields / properties are judged separately for get and set, and Obsolete members are marked
  • Exporting after an SDK update and comparing with the previous version shows which APIs were added
  • The menu only appears in projects with the world VRChat SDK (com.vrchat.worlds). If UdonSharp cannot be found, it tells you instead of writing anything
  • From scripts, use UdonExposureTreeExporter.Export(folder) (no dialogs); in batchmode, -executeMethod net.satania.customeditors.editor.worldtools.UdonExposureTreeExporter.ExportBatch -exposureOut <folder>

MIT License