GUIDManager.cs 461 B

123456789101112131415161718192021
  1. namespace AtlasUtility
  2. {
  3. using UnityEditor;
  4. using System.Collections.Generic;
  5. public class GUIDManager
  6. {
  7. public static List<string> GetGUID(List<string> assetPathList)
  8. {
  9. List<string> guidList = new List<string>();
  10. foreach (var assetPath in assetPathList)
  11. {
  12. guidList.Add(AssetDatabase.AssetPathToGUID(assetPath));
  13. }
  14. return guidList;
  15. }
  16. }
  17. }