Dotween: CanvasGroup shortcut not seeing methods

Created on 10 May 2019  路  5Comments  路  Source: Demigiant/dotween

The DOFade shortcut is not recognised on my instance of CanvasGroup. The error message is:
'CanvasGroup' does not contain a definition for 'DOFade' and the best extension method overload 'ShortcutExtensions.DOFade(Material, float, float)' requires a receiver of type 'Material'
I have UI enabled in the utility panel, and am importing the DG.Tweening package.

All 5 comments

Ahoy! Is it possible that something went wrong in the modules initialization? Can you try to restart Unity and see if that still happens, and if it does, can you check the "DOTween/Modules/DOTweenModuleUI.cs" file to be sure that it's define is making it active? On what version of Unity are you?

Cheers,
Daniele

Hi @Demigiant,
I have the same issue, but I've noticed that it only happens for code that's with an assembly definition.
unity 2019.3.0f6
dotween pro 1.0.244 and also dotween 1.2.420

Cheers :)
Brago

@IndieConstruction cio猫 scusa volevo dire Bragoooooooooooooooooooooooooooooooooooooooooooooo!!! :)

If you want a custom assembly (so not regular loose script) to be able to read modules stuff you need to create DOTween's ASMDEFs (because assemblies can't read loose scripts), which you can do from DOTween Utility Panel (the button right under Setup) :)

Digggi!!!!! Always the number one!!!
I had completely missed this part, it works perfectly ;)

Big love! :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dooprod picture dooprod  路  11Comments

lucasmontec picture lucasmontec  路  6Comments

RDeluxe picture RDeluxe  路  8Comments

wilczarzgit picture wilczarzgit  路  9Comments

SharpEdgeMarshall picture SharpEdgeMarshall  路  3Comments