Missing C# examples for PropertyTweener class #9924
Labels
area:class reference
Issues and PRs about the class reference, which should be addressed on the Godot engine repository
enhancement
good first issue
topic:dotnet
Your Godot version: 4.3
Issue description:
Was looking for more guidance on how to use
SetCustomInterpolator
in C# as a direct lambda expression can't be used directly inline (.SetCustomInterpolator(t => Math.Pow(t, 0.75f))
).Took a bit to get to
.SetCustomInterpolator(Callable.From<float, float>(t => Mathf.Pow(t, 0.75f)))
Would be nice for the page to have the boxes which switch between gdscript and C# like other examples. Thanks!
URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/classes/class_propertytweener.html#class-propertytweener-method-set-custom-interpolator
The text was updated successfully, but these errors were encountered: