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.
1 parent e7bb4ad commit a23f00fCopy full SHA for a23f00f
godot-macros/src/lib.rs
@@ -542,6 +542,21 @@ pub fn derive_godot_class(input: TokenStream) -> TokenStream {
542
/// }
543
/// ```
544
///
545
+/// Using _any_ trait other than the one corresponding with the base class will result in compilation failure.
546
+///
547
+/// ```compile_fail
548
+/// # use godot::prelude::*;
549
+/// #[derive(GodotClass)]
550
+/// #[class(init, base=Node3D)]
551
+/// pub struct My3DNode;
552
553
+/// #[godot_api]
554
+/// impl INode for My3DNode {
555
+/// fn ready(&mut self) {
556
+/// godot_print!("Hello World!");
557
+/// }
558
559
+/// ```
560
561
/// # User-defined functions
562
0 commit comments