标签:添加 拷贝 中文 com 技术 inf ids 命令 ati
[MenuItem("Assets/Copy Asset Path")]
[MenuItem("Assets/Copy Asset Path",priority = 0)]
AssetDatabase.GUIDToAssetPath(Selection.assetGUIDs[0])
GUIUtility.systemCopyBuffer = path;
[MenuItem("Assets/Copy Asset Path")]
static void CopyAssetPath()
{
string path = "";
if (Selection.assetGUIDs!=null && Selection.assetGUIDs.Length==1)
{
path = AssetDatabase.GUIDToAssetPath(Selection.assetGUIDs[0]);
}
GUIUtility.systemCopyBuffer = path;
}
标签:添加 拷贝 中文 com 技术 inf ids 命令 ati
原文地址:https://www.cnblogs.com/CloudLiu/p/10156027.html