以下の内容はhttps://baba-s.hatenablog.com/entry/2020/03/17/082000より取得しました。


【Unity】Addressable Asset System の BundledAssetGroupSchema.AssetBundleProviderType を変更するエディタ拡張

概要

使用例

using UnityEditor;

public static class Example
{
    [MenuItem( "Tools/Hoge" )]
    private static void Hoge()
    {
        var group = AddressableUtils.GetOrCreateGroup( "【グループ名】" );

        var bundledAssetGroupSchema = group.Schemas
                .OfType<BundledAssetGroupSchema>()
                .FirstOrDefault()
            ;

        var serializedType = new SerializedType
        {
            Value        = typeof( 【ResourceProviderBase を継承したクラス】 ),
            ValueChanged = true,
        };

        var type  = typeof( BundledAssetGroupSchema );
        var name  = "m_AssetBundleProviderType";
        var attr  = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;
        var value = type.GetField( name, attr );

        value.SetValue( bundledAssetGroupSchema, serializedType );
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2020/03/17/082000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14