mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge branch 'master' into 3.2
This commit is contained in:
@@ -654,8 +654,12 @@ the scene tree::
|
||||
Constants
|
||||
~~~~~~~~~
|
||||
|
||||
Constants are similar to variables, but must be constants or constant
|
||||
expressions and must be assigned on initialization.
|
||||
Constants are values you cannot change when the game is running.
|
||||
Their value must be known at compile-time. Using the
|
||||
``const`` keyword allows you to give a constant value a name. Trying to assign a
|
||||
value to a constant after it's declared will give you an error.
|
||||
|
||||
We recommend using constants whenever a value is not meant to change.
|
||||
|
||||
::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user