ソースコード
using System.Linq;
using UnityEditor;
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Settings.GroupSchemas;
using UnityEngine;
public static class Example
{
[MenuItem( "Tools/Hoge" )]
public static void Hoge()
{
var settings = AddressableAssetSettingsDefaultObject.Settings;
var names = settings.groups
.Select( x => x.GetSchema<BundledAssetGroupSchema>() )
.Where( x => x != null )
.Select( x => x.BuildPath.GetName( settings ) )
;
foreach ( var name in names )
{
Debug.Log( name );
}
}
}