godot-visual-script icon indicating copy to clipboard operation
godot-visual-script copied to clipboard

VisualScript call nodes should have a default arg of zero by default

Open Jummit opened this issue 6 years ago • 3 comments

Godot version: 3.1.1

Issue description: When adding a method node the default args are often not 0 and arguments are hidden, which isn't very intuitive. All arguments should be visible by default to show beginners everything, as they could get confused because an argument is missing (Seen in Godot Discord).

Steps to reproduce: Add a method call with more than one argument to a VisualScript.

Jummit avatar May 15 '19 14:05 Jummit

Can you give a Visual reference? I am not able to understand this one properly.

swarnimarun avatar May 20 '19 10:05 swarnimarun

image Shouldn't be one by default.

Jummit avatar May 20 '19 12:05 Jummit

I have a different opinion. The person that writes a function and gives it arguments default values, does so by design. So in most cases you dont need to wory about it when implementing the function. That is also a good reason to hide those by default. Secondly you might want a refrense to know in what scale a arg is designd.

Maybe a propposal for a VisualScript project property ´show default arguments´?

Gallilus avatar Apr 23 '21 18:04 Gallilus