9 Commits

Author SHA1 Message Date
31
fa78062603 Elaborate on C# Connect/Disconnect
(cherry picked from commit 04b42dc143)
2024-07-24 20:47:39 +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
Danil Alexeev
59075ad12f Fix GDScript code style regarding colon (docs) 2023-03-05 16:51:08 +03:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* 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.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +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
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Jean-Samuel Aubry-Guzzi
5e421754ec Add warning about importing c# 2022-10-25 21:24:37 -04:00
David Briscoe
9a14c8ded3 Rename print_x_times to print_n_times in Cross-language scripting (#6143)
Change code to match the rest of the documentation. C# examples
use PrintNTimes and calls print_n_times, so change gdscript to match.
2022-09-06 18:19:16 +02:00
Nathan Lovato
4272395ab7 Move scripting section to tutorials/
Closes #4113
2020-10-07 14:05:48 -06:00