29 Commits

Author SHA1 Message Date
AtelierFerrofell
a531c1b7d5 Update resources.rst to remove stray whitespace
Whitespace on line 216 was causing code to merge into the tab name
2025-08-01 15:56:18 -07:00
Zshandi Krahn
6e9342991d Update resources.rst to make inner class note more clear
The term "subclass" is often used as a synonym for "child class", so using it here to refer to an inner class is just confusing, even with the "i.e. an inner class" part. The GDScript Reference page simply uses the term "inner class" and never refers to them as "subclass", so this is also consistent with that.
2025-06-26 23:42:45 -07:00
A Thousand Ships
92cd36b50e Various grammar and spelling fixes 2025-06-23 16:37:26 +02:00
nicolanore
b8867b0817 Fix example code block for custom resources 2025-06-02 21:35:15 +02:00
j4d3blooded
fb1f3c8377 Included note about requirement for class_name for a resource to show… (#10838)
* Included note about requirement for class_name for a resource to show up in create resource GUI
2025-04-11 11:34:16 -04:00
Hew Playfair
dc5ef25815 Clarify resources.rst
The description of how to save a Resource in the Inspector refers to a menu that doesn't exist in 4.4 stable.
2025-04-08 15:39:26 -04:00
Kitzu
d884e3ef07 Correction on usage of Dictionaries in C# as it should be 'Godot.Collections.Dictionary<>' 2024-05-28 21:20:26 +02:00
j4d3blooded
47427a526c Update Resources tutorial to mention and use the GlobalClass annotation for C# (#9278)
* Updated Resources tutorial to mention and use the GlobalClass annotation for C#

The previous version of this page didn't mention using the `[GlobalClass]` annotation. Following this tutorial results in the user not finding their resource in the Create a new resource menu without any understanding as to why

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-04-30 04:16:52 +02:00
Tyler Pelaez
ce308e7ca8 Replace Reference usage with RefCounted 2024-02-28 14:09:06 -05: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
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
gomaproi
c39a8d9dc5 Update some screenshots in the Scripting section for Godot 4 (#6851) 2023-03-06 10:48:20 +01:00
Danil Alexeev
59075ad12f Fix GDScript code style regarding colon (docs) 2023-03-05 16:51:08 +03: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
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
31
0ed7937482 Fix Resource scripting blocks and C# examples 2022-12-28 22:35:47 -08:00
Hugo Locurcio
509804650e Update all instances of instance() to instantiate() 2022-11-29 16:59:09 +01:00
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Max Hilbrunner
9862cbea87 Reference -> RefCounted 2022-10-15 17:26:59 +02:00
TheYellowArchitect
5542bf980f [Resources] Update example to be compatible with 4.0 (#6279)
* [Resources] Update example to be compatible with 4.0

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2022-10-11 08:05:24 +02:00
Evanaellio
bc35550dc5 Swap arguments of ResourceSaver.save() 2022-09-21 22:30:25 +02: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
Aaron Franke
4060179184 Remove trailing space characters (#5251) 2021-09-13 14:52:39 +02:00
Max Hilbrunner
6318e530d0 Remove UE version number 2021-08-09 16:22:31 +02:00
Marcin Sędłak-Jakubowski
bd19917ea0 Draft: Remove "simple", "simply", "easy", and "just" from the docs (#4496)
* Various style edits

* Edit out "simple" when possible

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2021-07-11 14:38:53 +02: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
swift502
3740276d38 Fix broken C# tab in Resources scripting tutorial 2021-04-25 14:54:28 +02:00
RoniPerson
b1bf4a93e3 Add a note to set default values for custom resources (#4650)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-02-16 17:12:37 +01: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