gdext
gdext copied to clipboard
Rust bindings for Godot 4
~~I m trying to write a custom plugin for godot in double precision build~~ ~~Gd.bind() cause crash, with double-precision feature in `double precision` build godot.~~ (Latest godot `master` branch) Update...
It's confusing to alter Godot's `MultiplayerAPI` on the Rust side of things. In GDScript, you can freely assign the `MultiplayerAPI` a `MultiplayerPeer`, which lets you change things like the port,...
If user tries convert `@export_file("*.txt")` to Array: ```gdscript extends Node class_name NewScript @export_file("*.txt") var files: Array[String] ``` LSP shows error:  And in console:  But if user does it...
Hello, I've been trying to find any way to use godot's RPCs in `gdext`, but couldn't find any example of it (searched for it in the issues and features under...
From [Performance Investigation](https://github.com/appsinacup/godot-rapier-physics/issues/139) 1. Extra clones Calling set and many other methods of `Array` with `Variant` arguments clones the `Variant`. Example: ```rust let arr = Array::new(); arr.set(0, Variant::nil()); ``` The...
Not sure why it happens, @lilizoey has more insight, but it seems there are some casses that could be optimized out where we call `class_name::to_string_name `. In my [performance investigation](https://github.com/appsinacup/godot-rapier-physics/issues/139),...
This is a very cosmetic issue, and not urgent at all :slightly_smiling_face: The engine often uses different representations for the same thing. In some cases that's OK or would be...
A function defined like this: ```rs #[godot_api] impl Bar { #[func] fn add_two(&mut self, my_param: &String) {} } ``` Produces a "missing lifetime specifier" error  Which is because the...
There are several issues related to thread-ID checks that currently require either `experimental-threads` feature, or don't work at all. This issue tracks those. - [x] https://github.com/godot-rust/gdext/issues/556 - [ ] https://github.com/godot-rust/gdext/issues/597...
In some cases it would be nice to be able to use at least some basic features of some builtin types even when Godot isn't running. For instance, in doctests...