27 Commits

Author SHA1 Message Date
fearwalia
d5b8afb77b Clarify creating a global in Singletons (Autoload) (#10416)
The code below to be added to scene 1 and 2 didn't say how to define the global variable, and neither did this, so I fixed it

---------

Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-12-17 18:12:11 -08:00
Hugo Locurcio
748775370a Use negative index for get_child() in Singletons (Autoload) 2024-10-27 22:24:28 +01:00
Kongfa Waroros
f27d12979d Update certain example code snippets to use the new syntax 2024-08-23 14:16:54 +07:00
skyace65
f15784d14b Add info in instancing for opening the demo project 2024-08-11 22:45:27 -04:00
Riyyi
f001dcf2d8 Update alignment
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-07-21 17:02:00 +00:00
Riyyi
700b8bda73 Update "Autoload" navigation to match 4.3 menu
The "Project Settings" menu was restructured in 4.3, reflect this in the navigation instructions.
2024-07-21 16:00:16 +00:00
skyace65
7f662be73a Remove duplicate information in autoload page 2024-02-05 21:50:03 -05:00
31
a4e958c0e0 singletons_autoload.rst: add C# example similar to "Global Variable" 2024-01-27 21:08:32 -08:00
Hana - Piralein
63ad1da481 fix file casing 2023-10-17 20:42:28 +02:00
Mark Wilson
147d2233c7 Improve C# GD.Load() examples
* Use typed version of GD.Load()
* Use absolute paths (i.e., prefixed with "res://")
* Use "Path/To/" intermediate path values on abstract examples, to
  illustrate that files can live in various directories
* Use PascalCase on files that are not GDScript or GLSL
2023-10-08 12:25:43 -04:00
Hugo Trentesaux
4605865c0b Update singletons_autoload.rst
fix scene name to match zip template
2023-08-20 17:55:24 +02:00
Paul Joannon
0614837c22 Remove erroneous C# example about autoloads 2023-07-03 19:44:40 +02:00
Raul Santos
c457ab79ec Update some C# examples
- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Follow our code style more closely.
- Other minor code fixes.
2023-05-18 13:14:05 +02:00
Max Hilbrunner
72c0af46b2 Snake-case .tscn, .gd and _on_* callbacks
Co-authored-by: Doug Thompson <s-git@dougthompson.co.uk>
2023-05-18 12:46:58 +02:00
Yuri Sizov
0606a8ed38 Move tutorial ZIPs to a dedicated repository 2023-04-26 10:42:20 +02:00
Yuri Sizov
92f539dce2 Merge pull request #6881 from timothyqiu/autoload
Fix Autoload capitalization inconsistency
2023-03-06 18:53:29 +01:00
gomaproi
c39a8d9dc5 Update some screenshots in the Scripting section for Godot 4 (#6851) 2023-03-06 10:48:20 +01:00
Haoyu Qiu
ff5fab13f4 Fix Autoload capitalization inconsistency 2023-03-04 09:33:48 +08:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Hugo Locurcio
509804650e Update all instances of instance() to instantiate() 2022-11-29 16:59:09 +01:00
Kirrby
9d9d4b821c Updating change_scene and change_scene_to (#6175)
* Updating change_scene and chnage_scene_to

solves #6156
2022-10-05 12:57:40 +02:00
Hugo Locurcio
9baaf4dc42 Document registering an autoload when an editor plugin is enabled 2022-08-24 19:33:01 +02:00
Pixelatex
8bc58f580a Singletons tutorial has deprecated methods. (#6018)
* Singletons tutorial has deprecated methods.
2022-08-05 19:54:38 +02:00
Hugo Locurcio
cb9b2b8c5d Document that autoloads must not be freed to avoid crashes 2022-05-14 20:35:21 +02:00
Matthew
f1ff320f06 Clarify singleton read order (#5457)
* Clarify singleton read order

* Apply suggestions from code review

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-12-29 18:29:52 +01:00
BlueStag
a090a578fb Fixed GetNode inconsistencies (#5056)
* Fixed GetNode inconsistencies (C#)

The generic method should be used instead. See #4794.
2021-07-01 08:06:13 +02:00
Nathan Lovato
d0eb1eb6bc Move remaining files out of step_by_step/
Moved those to scripting/:

- filesystem
- resources
- singletons_autoload
- scene_tree

export to export/

and godot_design_philosophy to introduction/
2020-12-02 20:31:01 -06:00