0
Fixed

Extension methods use extended type instead of declaring type in AOT Pre-Build

賴志承Zisa.Lai 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 3

AOT Pre-Build, DOTween Extension Methods is error

AotStubs.cs 

// DG.Tweening.ShortcutExtensions.DOLocalMoveX
[UnityEngine.Scripting.PreserveAttribute()]
public static void DG_Tweening_ShortcutExtensions_DOLocalMoveX()
{
UnityEngine.Transform arg0 = default(UnityEngine.Transform);
float arg1 = default(float);
float arg2 = default(float);
bool arg3 = default(bool);
UnityEngine.Transform.DOLocalMoveX(arg0, arg1, arg2, arg3);   <=== error
Ludiq.StaticFunctionInvoker<UnityEngine.Transform, float, float, bool, DG.Tweening.Tweener> optimized = new Ludiq.StaticFunctionInvoker<UnityEngine.Transform, float, float, bool, DG.Tweening.Tweener>(default(System.Reflection.MethodInfo));
optimized.Invoke(null, arg0, arg1, arg2, arg3);
optimized.Invoke(default(object[]));
}

But, UnityEngine.Transform.DOLocalMoveX(arg0, arg1, arg2, arg3);

change to

DG.Tweening.ShortcutExtensions.DOLocalMoveX(arg0, arg1, arg2, arg3);

The error log is solved.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED

Thank you! :)

Satisfaction mark by 賴志承Zisa.Lai 2 years ago
Working on Fix

Thanks for the report, this seems like a regression introduced while fixing another issue.

I'll look into it ASAP and issue a hotfix.

Fixed in Next Version

Fixed for v.1.4.0f5