以下の内容はhttps://baba-s.hatenablog.com/entry/2020/09/29/080000より取得しました。


【Unity】選択中のフォルダとすべてのサブフォルダのパスを取得するエディタ拡張

概要

using System.Linq;
using UnityEditor;
using UnityEngine;

public class Example
{
    [MenuItem( "Tools/Hoge" )]
    private static void Hoge()
    {
        var paths = Selection
            .GetFiltered<DefaultAsset>( SelectionMode.DeepAssets )
            .Select( x => AssetDatabase.GetAssetPath( x ) )
            .Where( x => AssetDatabase.IsValidFolder( x ) )
            .ToArray();

        foreach ( var path in paths )
        {
            Debug.Log( path );
        }
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2020/09/29/080000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14