リポジトリ
使用例
using Kogane;
using UnityEditor;
using UnityEngine;
public static class Test
{
[MenuItem( "Tools/Hoge" )]
private static void Hoge()
{
var assetPath = new AssetPath( "Assets/New Material.mat" );
Debug.Log( assetPath );
Debug.Log( assetPath.DirectoryName );
Debug.Log( assetPath.Extension );
Debug.Log( assetPath.FileName );
Debug.Log( assetPath.FileNameWithoutExtension );
Debug.Log( assetPath.FullPath );
Debug.Log( assetPath.GUID );
Debug.Log( assetPath.IsValidFolder );
string str = assetPath;
Debug.Log( str );
assetPath = str;
Debug.Log( assetPath );
}
}