klawr icon indicating copy to clipboard operation
klawr copied to clipboard

Set default parameter values in C# wrapper classes based on UFunction metadata

Open enlight opened this issue 10 years ago • 0 comments

For example this function in UAnimInstance: UFUNCTION(BlueprintCallable, Category="Animation", meta=(InBlendOutTime="0.25")) void Montage_Stop(float InBlendOutTime); Has a default value specified for the InBlendOutTime so the corresponding C# wrapper should have a method like this: public void Montage_Stop(float InBlendOutTime = 0.25f) { ... }

enlight avatar Aug 02 '14 07:08 enlight