Working on it

Tweening Integration

Lazlo Bonin (Lead Developer) 1 year ago • updated 3 months ago 12

Provide deep integration with a popular tweening library, probably Demigiant's awesome DOTween 2. Units should be easy to setup and able to asynchronously wait for a tween to finish.

In the mean time, extension methods are supported, but deeper integration could provide significantly better UX.


Question, you say that extension methods are supported, how so? I tried creating an extension method for one of my types and it didn't show up, neither did creating an extension method for Vector3. I'd really appreciate this feature as I enjoy fluent interfaces.

I like this idea. Tweening is essential, especially for UI animations, where we plan on using Bolt extensively.

Go to Unit Options Wizard and in Type Options, include a new Type: ShortcutExtentions and/or ShortcutExtentionsPro ( if you have PRO Version ). All extentions methods will apears !

I don't see how extension methods of DOTween work in this context. Yes, I have added ShortcutExtensions to the types and I can see it in the graph editor, but once I select one of the functions, it simply creates a unit saying that the reflection failed and it couldn't find the member. Any ideas?

As a side note, the reflection fails completely when simply creating the node using right clicking and searching for the file. If one then sets the same method to be called on that node in the graph inspector window, it will actually show the correct method, but it will still be impossible to set the this-parameter of the extension method.

Please create a separate bug report with the error log!

Hi, any tutorials to get DOTween shortcut? because i always failed...

However, when will Dotween Integration be ready ? thanks a lot in advance....

Any further news on this? I'd hoped I could access DoTween functions right away, but this blocks me a little. Any other Tweening packages that are more compatible with Bolt at this stage or any preferred workarounds? Cheers


It's literally the next version once 4.6 assemblies are added. GDC is over, and Lazlo should be back to work. It will be happening very very soon. Dotween works with it's own shortcut extensions, if you get me or aspys add-ons in macros section of the forum, you can start using DOTween right now fully too, with generic. Heard LeanTween works too, haven't tried it myself though. But if i bolt is using DoTween at the core,  then the switch should be easier if you stuck with the first method.

Interesting, every time I consult the forum you appear haha JasonJonesLASM


Good news: I've talked to Demigiant, the author of DOTween, and it will be built-in to Bolt!

I'll do some design research & iterations and ask for his input on the best way to handle all cases.