Cannot find attribute `signal` in this scope
Solutions:
- Declare the
signal
in the class impl block. - Add
#[godot_api]
on the impl block that contains the signal.
#[godot_api]impl MyClass { #[signal] fn custom_signal();}
signal
in the class impl block.#[godot_api]
on the impl block that contains the signal.#[godot_api]impl MyClass { #[signal] fn custom_signal();}