tutorials/scripting/c_sharp/c_sharp_exports #328
Replies: 4 comments 1 reply
-
|
Just to save some people some time. Doc comments appearing in the editor tooltip (like the ## comments do in GDScript) is currently not supported for C#. |
Beta Was this translation helpful? Give feedback.
-
|
Is there an equivalent to @export_storage in C#? Or is it not supported? |
Beta Was this translation helpful? Give feedback.
-
|
I would add a note after the example [Export]
public Godot.Collections.Array<PackedScene> Scenes { get; set; }that to export an Array of a custom class, this class must have a |
Beta Was this translation helpful? Give feedback.
-
|
For those interested in using the new GroupEnable boolean export, here's an example in C# [ExportGroup("Repeating")]
[Export(PropertyHint.GroupEnable, "")] private bool _repeating = false;
[Export] private float _updatesPerSecond = 30.0f; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
tutorials/scripting/c_sharp/c_sharp_exports
In Godot, class members can be exported. This means their value gets saved along with the resource (such as the scene) they're attached to. They will also be available for editing in the property e...
https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_exports.html
Beta Was this translation helpful? Give feedback.
All reactions