File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ extends SceneTree
2+
3+ # This will work in the provided Godot Game Engine script editor.
4+ # To make this work on VSCode, use the "godot-tools" extension.
5+
6+ #region
7+ func a ():
8+ return "I'm in an region. You can collapse my region in the editor."
9+ #endregion
10+
11+ #region With a Description
12+ func b ():
13+ return "I'm in an named region. You can collapse my region in the editor."
14+ #endregion
15+
16+ #region
17+ func c ():
18+ #region
19+ return "I'm in a nested region. You can collapse either of my regions in the editor."
20+ #endregion
21+ #endregion
22+
23+ func _init ():
24+ print (a ())
25+ print (b ())
26+ print (c ())
27+ quit ()
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ godot --display-driver headless --no-header -s "$PSScriptRoot\clockhands.gd" |
1919godot -- display- driver headless -- no- header - s " $PSScriptRoot \clockhands_time.gd" |
2020 Compare-Object (Get-Content " $PSScriptRoot \..\test\clockhands_expected" ) |
2121 Assert-MatchTests &&
22+ godot -- display- driver headless -- no- header - s " $PSScriptRoot \code_regions.gd" &&
2223godot -- display- driver headless -- no- header - s " $PSScriptRoot \fibonacci.gd" &&
2324godot -- display- driver headless -- no- header - s " $PSScriptRoot \file_reader.gd" " $PSScriptRoot \..\test\carrots_expected" |
2425 Compare-Object (Get-Content " $PSScriptRoot \..\test\carrots_expected" ) |
You can’t perform that action at this time.
0 commit comments