0
Fixed

Extension Methods (like DOTween) don't work in Bolt 1.4

aYo 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 11 1 duplicate

I'm using Unity 2018.1.5. I've added DOTween latest, did it's setup, added Bolt, added all required assemblies and types, doesn't work.



I've done this 2 times, with .net 3.5 and .net 4, both new projects.


this is the stack trace that i get when adding DO anything from the fuzzy finder
stackTrace.txt

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Duplicates 1

Is there a solution to this problem? You can try the version of 2018.2. I just bought bolt1.4 yesterday. I am still learning... I don't know if bolt supports other plugins?

+1
Working on Fix

Hi aYo, sorry you're having this issue.

It seems like a regression in the reflection code for extension methods, I will look into it ASAP.

Screencap has no Chronos,because it cause errors like these(so i removed it).

Found & fixed the cause of this, will try to issue an update ASAP.

Fixed in Next Version

Fixed for v.1.4.0f3.

Where I can download this hot fix #3?... There is version in 1.4.0.f2 in the main topic. Thanks

Sorry,I am not sure my problem is same. but, i am use DOTween and want to AOT Pre-Build, Extension Methods don't work. 

My console have error log:


My bolt setting:


My AotStubs.cs


My version unity 2018.2.0f2 and bolt 1.4.0f4 NET4

How can i do? thanks!

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.