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
When calling ResourceUid.TextToId(text) or ResourceUid.IdToText(id) in C# it causes this error:
Failed to retrieve non-existent singleton 'ResourceUid'.
modules/mono/glue/runtime_interop.cpp:1303 - System.ArgumentNullException: Value cannot be null. (Parameter 'ptr')
at Godot.NativeCalls.godot_icall_1_922(IntPtr method, IntPtr ptr, String arg1) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Generated/NativeCalls.cs:line 8450
at Godot.ResourceUid.TextToId(String textId) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Generated/GodotObjects/ResourceUid.cs:line 58
at uidtest.set_Text(String value) in D:\Documents\Repos\Godot\CitrusOrchestra\uidtest.cs:line 14
at uidtest.SetGodotClassPropertyValue(godot_string_name& name, godot_variant& value) in D:\Documents\Repos\Godot\CitrusOrchestra\Godot.SourceGenerators\Godot.SourceGenerators.ScriptPropertiesGenerator\uidtest_ScriptProperties.generated.cs:line 16
at Godot.Bridge.CSharpInstanceBridge.Set(IntPtr godotObjectGCHandle, godot_string_name* name, godot_variant* value) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/CSharpInstanceBridge.cs:line 57
Steps to reproduce
Add script below to a node, build, and write some number in the Id property in inspector. See error in output.
Minimal reproduction project
using Godot;using System;[Tool]publicpartialclassuidtest:Node{[Export]publicstringText{get=> text;set{text=value;
GD.Print(ResourceUid.TextToId(text));}}[Export]publiclongId{get=> id;set{id=value;
GD.Print(ResourceUid.IdToText(id));}}privatestringtext;privatelongid;}
The text was updated successfully, but these errors were encountered:
Godot version
4.0.stable.mono
System information
Windows 10
Issue description
When calling
ResourceUid.TextToId(text)
orResourceUid.IdToText(id)
in C# it causes this error:Steps to reproduce
Add script below to a node, build, and write some number in the Id property in inspector. See error in output.
Minimal reproduction project
The text was updated successfully, but these errors were encountered: