* Update C# exports documentation
- Node exports are supported in 4.0.
- Add documentation about exporting enums (and flag enums).
- Add more documentation about exporting collections.
- Changes to follow our style guide more closely.
---------
Co-authored-by: Hana <48352564+Piralein@users.noreply.github.com>
This is required for fonts with a pixel art appearance to look
correct (dynamic or bitmap).
This also fixes the mention of the first Godot version to support
WOFF2 fonts.
- Mention subpixel positioning should be disabled for fonts with a pixel art
appearance.
- Update bitmap font import dock image and document image/character margin.
- Fixed character range example to match the font image (it previously
had to be reduced by 1 due to an off-by-one error in the importer code).
The typing information was ultimately determined in this file where
Varients are converted and packed:
a51ca2beaf/servers/rendering/renderer_rd/storage_rd/material_storage.cpp (L42)
The documentation doesn't contain a reference to dealing with how
Packed[Float|Int]Arrays are interpreted, but should be a much better
starting point for new users.
Adds two changes:
- makes it clear where subclasses should go (at the bottom of the script)
- put the `_enter_tree()` method before `_ready()` but after `_init()` since that's the order in which the methods are executed
* 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>
In the current style guide, the example for ternary operators includes a "not" in the conditional which is the same text color as the preceding "if" giving the impression that the format for a ternary operation is "[some_value] if not [condition] else [other_value]" which is incorrect, and may be confusing to figure out. I'm new to Godot and I've never used python (which I understand GDScript is based on). My only experience is with c# which I don't believe has a "not" keyword so I was quite confused by this.
This change would remove "not" from the condition to eliminate confusion, and rearrange the values to keep the meaning of the example code the same. Any alternative that removes the "not" would also work.
As mentioned here https://github.com/godotengine/godot-docs/issues/6716
add/remove_node3d_gizmo_plugin is the wrong method name. But i'm not sure if it intentionally changed to add/remove_node_3d_gizmo_plugin.
Here are the adjustments anway in case it is intentional and going to stay that way.