GPUParticles2D/3D emit_particle C# method signature #12730
Confuzzl
started this conversation in
Engine Core
Replies: 2 comments
-
This is probably another one of those annoying bugs that would be fixed by the .NET GDExtension bindings |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Because GDScript lacks unsigned integer types,
emit_particle
'sflags
parameter is anint
. Godot's C# implementation hasEmitParticle
's flag parameter as anuint
instead. Unlike in C++, C# enums don't implicitly convert to their underlying types, so when usingEmitFlags
the writer has to explicitly cast touint
. Is it possible for theEmitParticle
's signature to changeflags
's type toEmitFlags
?Another thing that's strange is that C#
EmitFlags
's underlying type islong
, when in the C++ source forGPUParticles2D
the enum's type isint
.Beta Was this translation helpful? Give feedback.
All reactions