This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.xr.arkit@4.2.10/Editor/ARKitBuildHelper.cs

14 lines
396 B
C#

using System.Collections.Generic;
using System.Linq;
namespace UnityEditor.XR.ARKit
{
static class ARKitBuildHelper
{
public static IEnumerable<T> AssetsOfType<T>() where T : UnityEngine.Object =>
AssetDatabase.FindAssets($"t:{typeof(T).Name}")
.Select(AssetDatabase.GUIDToAssetPath)
.Select(AssetDatabase.LoadAssetAtPath<T>);
}
}