概要
using NUnit.Framework; using System.Linq; using System.Text; using UnityEditor; public static class Example { [Test] public static void CheckAssetBundleNames() { var list = AssetDatabase.GetAllAssetBundleNames(); var isExist = list.Any(); if ( !isExist ) return; var builder = new StringBuilder(); foreach ( var n in list ) { builder.AppendLine( $"{n}" ); } Assert.Fail( builder.ToString() ); } }