Closed gamedevserj closed 4 months ago
Hey, thanks for raising this, I'll investigate and fix.
Hey @gamedevserj, sorry for the delay! The getter (first parameter of the Tween function) is an action, so you need to use it like this:
Vector3 test = Vector3.Zero; // You need to initialize this or there is a compile error
GTween t = GTweenGodotExtensions.Tween(() => test, x => test = x, Vector3.One, 1f);
I'll close this, but don't hesitate to open another issue if I missed something, or it's still not working for you.
Hey @Guillemsc thanks! Can't believe I didn't notice it :facepalm: And no worries about the time!
Generic tweening doesn't work with Godot's vectors
The error is CS0029 where it says that I can't implicitly convert Godot.Vector2I to Godot.Vector3, although Vector2I is not used in my code at all.
Hovering over parameters in tween shows that both test and x are Vector3
Generic tweening of default c# values seems to be working without a problem