Is pass in gd the same as return; in C#?

Making the jump from Unity to Godot. I’m just curious if pass functions the same way as return; does in C#

Morning,

pass, as far as i understand, does nothing, just stops errors being flagged from empty functions you havent completed.

bit more info and an example on the Godot QnA.
< Difference between PASS and RETURN - Godot Engine - Q&A>

Darren

I see thank you. I just got the function section of the tutorial that explains Godot also as a return command like C#. It seems like pass is just the equivalent to having empty curly brackets in C#.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms