Hierarchy Path Copy Utility is an editor package that copies hierarchy paths and object locator strings for selected objects directly from Unity menus.
- Open
Window > Package Manager. - Click the
+button. - Select
Add package from git URL.... - Paste the Git URL of this package repository and confirm.
Example Git URL after publishing the repository:
https://github.com/RimuruDev/HierarchyPathCopyUtility.git
- Open the Releases page of this package repository.
- Download the published
.unitypackagefile if one is attached to the release. - Import it through
Assets > Import Package > Custom Package....
If the release contains the package source instead of a .unitypackage, copy the HierarchyPathCopyUtility folder into:
Assets/Plugins/AbyssMoth/
- Select one or more objects in the Hierarchy.
- Use
AbyssMoth/Copy Selection/Hierarchy Pathto copy a plain hierarchy path. - Use
AbyssMoth/Copy Selection/Object Locatorto copy a path with scene or prefab context.
Hotkeys:
Hierarchy Path:Cmd+Option+Von macOS,Ctrl+Alt+Von WindowsObject Locator:Cmd+Shift+Option+Con macOS,Ctrl+Shift+Alt+Con Windows
Hierarchy Path copies values like Root/Child/Target.
Object Locator copies values like Scene:SampleScene :: Root/Child/Target or Scene:SampleScene :: Root/Child/Target :: Prefab:Assets/Example.prefab.
The package currently targets Unity 6000.3.6f1.
License: MIT