コード例 #1
0
 /// <summary>
 /// 重命名资源
 /// </summary>
 /// <param name="Old">旧资源名</param>
 /// <param name="New">新资源名</param>
 public void Rename(string Old, string New)
 {
     NameList[NameList.IndexOf(Old)]           = New;
     InfoList[NameList.IndexOf(New)].AssetName = AssetUtility.GetAssetName(New);
 }
 /// <summary>
 /// 获得资源的名称(请不要在一个不是Mod资源的对象上调用此函数)
 /// </summary>
 public static string GetAssetName <T>(this T asset) where T : UnityEngine.Object
 {
     return(AssetUtility.GetAssetName(asset.name));
 }