Naming convention for gdscript from the style guide
Type | Rules | Example |
---|---|---|
File | snake_case | my_file |
Class | PascaCase | CharacterBody, var Body = preload… |
Functions and Variables | snake_case | function, my_variable |
Private Functions and Variables | snake_case, prefixed with _ underscore | _private_variable |
Signal | snake_case, past tense | door_opened |
Constant | UPPERCASE, UNSERSORE_SEPARATED | MY_CONSTANT |