parent
947c8b8e20
commit
f0e18ea3a5
|
@ -53,14 +53,11 @@ namespace UnityBuilderAction
|
||||||
if (addressableAssetSettingsType != null)
|
if (addressableAssetSettingsType != null)
|
||||||
{
|
{
|
||||||
// ReSharper disable once PossibleNullReferenceException, used from try-catch
|
// ReSharper disable once PossibleNullReferenceException, used from try-catch
|
||||||
void CallAddressablesMethod(string methodName, object[] args) => addressableAssetSettingsType
|
|
||||||
.GetMethod(methodName, BindingFlags.Static | BindingFlags.Public)
|
|
||||||
.Invoke(null, args);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
CallAddressablesMethod("CleanPlayerContent", new object[] { null });
|
addressableAssetSettingsType.GetMethod("CleanPlayerContent", BindingFlags.Static | BindingFlags.Public)
|
||||||
CallAddressablesMethod("BuildPlayerContent", Array.Empty<object>());
|
.Invoke(null, new object[] {null});
|
||||||
|
addressableAssetSettingsType.GetMethod("BuildPlayerContent", new Type[0]).Invoke(null, new object[0]);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue