0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

UnityのProjectビューで選択したファイルのPathをコピーする拡張機能

Last updated at Posted at 2025-04-21

はじめに

プロジェクトビューの操作でPathのコピーをしたい時があります。
時々あります。

機能

ファイルを選択して右クリックして表示したメニューからPathをコピーします
絶対PathまたはAssets/から始まるPath
・フォルダの場合は配下のファイルを再帰的に羅列する
スクリーンショット 2025-04-21 220806.png

サンプル

Assetsに以下のフォルダやファイルがあった場合で「CharaImage」フォルダを選択した場合
Test
┗aaa.png
┗Test/bbb.png
┗Test/zzz.png
┗CharaImage
 ┗chara_01.png
 ┗chara_02.png
 ┗chara_03.png
 ┗boss
  ┗boss_01.png
  ┗boss_02.png
┗ItemImage
 ┗item_01.png
 ┗item_02.png

Absolute Path

D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage

Absolute Path (Recursive)

D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage
D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage/chara_01.png
D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage/chara_02.png
D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage/chara_03.png
D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage/boss
D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage/boss/boss_01.png
D:/HOGE/UnityProjects/Project_CopyAssetPath/Assets/Test/CharaImage/boss/boss_02.png

Assets Path

Assets/Test/CharaImage

Assets Path (Recursive)

Assets/Test/CharaImage
Assets/Test/CharaImage/chara_01.png
Assets/Test/CharaImage/chara_02.png
Assets/Test/CharaImage/chara_03.png
Assets/Test/CharaImage/boss
Assets/Test/CharaImage/boss/boss_01.png
Assets/Test/CharaImage/boss/boss_02.png

GitHubで公開

UPM(Add package from git URL)での追加
https://github.com/Isshi-777/EditorCopyAssetPath.git

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?