Ho to define a getter or setter

Hi there, I’m using DOTween & Unity Visual Scripting.

I’m attempting to simply tween a float value. The node DoTween (To) requires a setter method input I believe. But how to define this via a script graph?

Please see attached for clarity.

Thanks in advance.

8234403--1076295--Screenshot 2022-06-26 at 23.19.23.png

From a quick look at the docs, the setter is a delegate. UVS does not support delegate functionality.

Use the DOFloat Dotween shortcut instead.

Thank you PanthenEye :slight_smile: I don’t see this DoFloat node available to me, only for Materials - see attached. Might you know what Type Option or Node’s I might need to add to see this?

Thanks in advance.

8235285--1076466--Screenshot 2022-06-27 at 12.18.05.png


My bad, I thought there’s a shortcut for it. Turns out there isn’t one for float and DoTween To is the only option, it seems. So either you write a custom C# node that will do Dotween To or you go for an alternate solution such as Mathf.Lerp.

Thank you PanthenEye :slight_smile: I’m glad it wasn’t just me :slight_smile:

Rich