Hi guys.
After 3 days of wandering inside the Documentation and Google i just have no other choice to ask help here.
My problem is simple:
i can create a simple button and when i press it this code will fired
var instance = ((PackedScene)ResourceLoader.Load("res://assets/ACErr.tscn")).Instance();
AddChild(instance);
Log("AddChield TEST");
...and it works like a charm....
So, I created a more complex project and i added the code below (for testing purpose) inside the main node of my scene (a Spatial).
public bool AddChild_Now = false;
public override void _Process(float delta)
{
if (AddChild_Now)
{
AddChild_Now = false;
var instance = ((PackedScene)ResourceLoader.Load("res://assets/ACErr.tscn")).Instance();
AddChild(instance);
Log("AddChield TEST");
}
}
and the results is this:
E 0:00:01.840 get_fetched_method_unknown_params: Condition "!methods_fetched" is true. Returned: __null
<Sorgente C++>modules/mono/mono_gd/gd_mono_class.cpp:264 @ get_fetched_method_unknown_params()
<Analisi dello stack>:0 @ void Godot.NativeCalls.godot_icall_2_420(IntPtr , IntPtr , IntPtr , Boolean )()
Node.cs:525 @ void Godot.Node.AddChild(Godot.Node , Boolean )()
LocalWorldWrapper.cs:31 @ void LocalWorldWrapper._Process(Single )()
I dunno why it happends, couse i tried to replicate in other clean project but it appears only here!
So my question is: "What means this error?, How can i go out of this?"
Thx in advance for all your help and sorry for my poor english!
PS: i cant provide a simple test case but if you want i can share my entire project.
I'm on Linux Manjaro - Godot Engine v3.2.3.stable.mono.official - OpenGL ES 3.0 Renderer: GeForce GTX 980/PCIe/SSE2