13 Commits

Author SHA1 Message Date
Hugo Locurcio
7d34e4e42e Clarify difference between Godot's scene instancing and hardware instancing
- Link to tutorial about instancing scenes by code in Creating instances
  (and link the other way around too).
2025-02-05 11:23:25 +01: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
AV77
de8348230c Replaced all instances of "hard drive" with "local storage" (#7287) 2023-05-05 13:34:34 +02:00
gomaproi
c39a8d9dc5 Update some screenshots in the Scripting section for Godot 4 (#6851) 2023-03-06 10:48:20 +01:00
Paul Joannon
ac22d6e537 Update & fix C# blocks under tutorials/scripting/
- `_Process` and `_PhysicsProcess` take their delta argument as a `double`
- Use string interpolation instead of concatenating strings
- Use `string` instead of `String` (`using System` was removed from everywhere in a previous PR)
- Use `System.Array.Empty<T>()` to init empty arrays
- Use `SignalName.*` instead of `nameof(*)` for signals
- Do not use `event` as an argument name (that's a keyword)
- Match node paths to screenshots when retrieving nodes from the tree
- Add a C# example for scene unique nodes
- Update the "Cross language scripting" page
- Add a note about using `is` against `null`
2023-01-13 20:41:23 +01:00
Markus Sauermann
57a9ef3fea Add @ to onready annotated variables in examples 2022-02-04 19:33:10 +01:00
Fernando Carmona Varo
94beafa63b Change PackedScene instance() to instantiate() (#5439) 2021-12-08 00:26:00 +01:00
Rémi Verschelde
9a05eef561 4.0: Convert Sprite references to Sprite2D
Some screenshots will need to be updated so that the scene structures shown
in screenshot fit what the code blocks are referring to.
2021-10-06 14:29:55 +02:00
Nat Quayle Nelson
168e56843b Add missing "use" in "use as" in Nodes and scene instances (#4749) 2021-03-13 18:52:16 +01:00
Carl
3f3e203bdd Fix CSharp instanciation example (#4618) 2021-02-02 14:36:11 +01:00
Nathan Lovato
8987df4315 Improve nodes_and_scene_instances.rst
Based on review notes, add pictures to illustrate renaming a node and
how a node leaves the remote scene tree at runtime after calling free()
or queue_free()
2020-11-10 10:30:58 -06:00
Nathan Lovato
3665f22bab Edit the scripting section
Misc grammar fixes, improvements to phrasing, and more.

Co-authored-by: balloonpopper <5151242+balloonpopper@users.noreply.github.com>
2020-11-10 08:18:44 -06:00
Nathan Lovato
9927bfbb71 Write nodes_and_scene_instances.rst from scripting_continued.rst
Rewrote the docs
Added an intro section about getting nodes and syntactic sugar
2020-11-07 23:11:29 -06:00