We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[export]
Gd<T>
DynGd<T, D>
1 parent 47cc8da commit aaa823fCopy full SHA for aaa823f
godot-core/src/registry/property.rs
@@ -64,7 +64,8 @@ pub trait Var: GodotConvert {
64
#[diagnostic::on_unimplemented(
65
message = "`#[var]` properties require `Var` trait; #[export] ones require `Export` trait",
66
label = "type cannot be used as a property",
67
- note = "see also: https://godot-rust.github.io/book/register/properties.html"
+ note = "see also: https://godot-rust.github.io/book/register/properties.html",
68
+ note = "`Gd` and `DynGd` cannot be exported directly; wrap them in `Option<...>` or `OnEditor<...>`."
69
)]
70
pub trait Export: Var {
71
/// The export info to use for an exported field of this type, if no other export info is specified.
0 commit comments