tween Signal error overload
Asked Answered
A

3

0

I don't understand why I got this error: No overload for 'playAudioSound' matches delegate 'Tween.StepFinishedEventHandler'

Maybe this is a bug?

Airsick answered 17/11, 2023 at 13:16 Comment(0)
L
0

Airsick idx argument should be long, not int.
You can get more useful error message if you try to add the delegate as lambda.

tween.StepFinished += (int i) => {};

In this case the error message will tell you specifically where the type mismatch is.

Laager answered 17/11, 2023 at 13:38 Comment(0)
A
0

Laager
Thank you very much, it worked😊👍
I'm sorry the Godot document confused me.

Airsick answered 17/11, 2023 at 13:58 Comment(0)
L
0

Airsick Yeah, Godot's int type is 64 bits. Which is equivalent to C# long.

Laager answered 17/11, 2023 at 14:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.