Hello. I try to rewrite my Gdscript logic to C++, using modules, not GdNative. There is no any issues if load resource with follow line:
RES cpp_sprite = ResourceLoader::load("res://CppSprite.tscn");
But I can not make instance it to scene just as in gdscript do, follow line return an error:
CppNode *cpp_sprite_instance = cpp_sprite->instance();
Compiler says: class Resource has no member “instance”. Allright, we have wrong type. But how to flip Resource type to PackedScene?