以下の内容はhttps://baba-s.hatenablog.com/entry/2020/04/05/100000_1より取得しました。


【Unity】Addressable Asset System で PlatformMappingService.GetAddressablesPlatformInternal をリフレクションで参照する関数

概要

private static AddressablesPlatform GetPlatform( BuildTarget target )
{
    const string methodName = "GetAddressablesPlatformInternal";
    
    var serviceType = typeof( PlatformMappingService );
    var targetType  = typeof( BuildTarget );
    var methods     = serviceType.GetMethods( BindingFlags.Static | BindingFlags.NonPublic );
    var method      = methods.FirstOrDefault( c => c.Name == methodName && c.GetParameters()[ 0 ].ParameterType == targetType );
    var platform    = ( AddressablesPlatform ) method.Invoke( null, new object[] { target } );

    return platform;
}



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

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