You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom mainloop can't work properly. Refers to this issue. kleonc's solution can work with gdscript mainloop, but rust's failed.
The minimal reproduction project is in the linked issue above. And the rust part is simply add these:
Here is my_main_loop.rs:
use godot::prelude::*;#[derive(GodotClass,Debug)]#[class(base=SceneTree)]pubstructMyMainLoop{#[base]base:Base<SceneTree>,}#[godot_api]implMyMainLoop{#[func]fnsay_hello(&self){
godot::prelude::godot_print!("hello world!");}}#[godot_api]implGodotExtforMyMainLoop{}
Here lib.rs:
use godot::prelude::*;structExtMain;mod my_mainloop;#[gdextension]unsafeimplExtensionLibraryforExtMain{}
The text was updated successfully, but these errors were encountered:
Custom mainloop can't work properly. Refers to this issue. kleonc's solution can work with gdscript mainloop, but rust's failed.
The minimal reproduction project is in the linked issue above. And the rust part is simply add these:
Here is
my_main_loop.rs
:Here
lib.rs
:The text was updated successfully, but these errors were encountered: