Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPUParticles3D. Wrapper class not found. 4.0.beta16 mono #72203

Closed
barrrettt opened this issue Jan 27, 2023 · 1 comment · Fixed by #72205
Closed

GPUParticles3D. Wrapper class not found. 4.0.beta16 mono #72203

barrrettt opened this issue Jan 27, 2023 · 1 comment · Fixed by #72205

Comments

@barrrettt
Copy link

barrrettt commented Jan 27, 2023

Godot version

4.0 beta 16 mono

System information

win11

Issue description

Wrapper class not found for type: GPUParticles3D

CONSOLE SAY:

E 0:00:01:0387 ScriptManagerBridge.cs:101 @ IntPtr Godot.Bridge.ScriptManagerBridge.CreateManagedForGodotObjectBinding(Godot.NativeInterop.godot_string_name* , IntPtr ): System.InvalidOperationException: Wrapper class not found for type: GPUParticles3D
<C# Error> System.InvalidOperationException
<C# Source> /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs:101 @ IntPtr Godot.Bridge.ScriptManagerBridge.CreateManagedForGodotObjectBinding(Godot.NativeInterop.godot_string_name* , IntPtr )
ScriptManagerBridge.cs:101 @ IntPtr Godot.Bridge.ScriptManagerBridge.CreateManagedForGodotObjectBinding(Godot.NativeInterop.godot_string_name* , IntPtr )

Steps to reproduce

Call this in C#

 private GpuParticles3D emitter1;
	
    public override void _Ready() {
        emitter1 = GetNode("emitter1") as GpuParticles3D;
}

Minimal reproduction project

1 scene with:

- Node3D
   - GpuParticles3D

Add c# script to rood node.
GetNode gpu particle

@MysteriousMilk
Copy link

MysteriousMilk commented Jan 28, 2023

Same issue for me, but with GPU Particles 2D. I know there were a lot of renames and breaking changes in this beta (16). What's interesting is that in the editor, the node type shows up as GPUParticles2D, but in code it is now GpuParticles2D. Not sure if that makes a difference. Usually, the node name and the class name are the same.

ScriptManagerBridge.cs:101 @ IntPtr Godot.Bridge.ScriptManagerBridge.CreateManagedForGodotObjectBinding(Godot.NativeInterop.godot_string_name* , IntPtr ): System.InvalidOperationException: Wrapper class not found for type: GPUParticles2D <C# Error> System.InvalidOperationException <C# Source> /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs:101 @ IntPtr Godot.Bridge.ScriptManagerBridge.CreateManagedForGodotObjectBinding(Godot.NativeInterop.godot_string_name* , IntPtr ) <Stack Trace> ScriptManagerBridge.cs:101 @ IntPtr Godot.Bridge.ScriptManagerBridge.CreateManagedForGodotObjectBinding(Godot.NativeInterop.godot_string_name* , IntPtr )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants