Copie depuis Unity VCS vers GitHub

This commit is contained in:
Denis L.
2025-12-10 18:51:40 +01:00
parent 5cfd9de581
commit 7383621db3
902 changed files with 588195 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace CharacterCustomizationTool.Editor
{
public static class AssetLoader
{
public static IEnumerable<T> LoadAssets<T>(string filter, string folder)
where T : Object
{
var assets = AssetDatabase.FindAssets(filter, new[] { folder })
.Select(AssetDatabase.GUIDToAssetPath)
.Select(AssetDatabase.LoadAssetAtPath<T>)
.ToArray();
return assets;
}
}
}