Are there any examples of how to return a Unigine::vector<Type> back to UnigineScript? It doesn't appear to work in the way that I would expect. C++
---MyClass.cpp
Unigine::Vector<CustomStruct> &getStruct()
{
return my_struct;
}
---Plugin.cpp
ExternClass<MyClass> *my_class= MakeExternClass<MyClass>();
my_class->addConstructor();
my_class->addFunction("getStruct",&MyClass::getStruct);
Interpreter::addExternClass("MyClass",my_class);
UnigineScript
MyClass my_class = new MyClass();
CustomStruct structs[] = my_class.getStruct();
Error: Interpreter::parse_expression_array(): "my_class" is not a user array