The CScriptArray class requires a pointer to asIObjectType upon construction. The asIObjectType pointer passed into the constructor appears to be the type of the Array itself, not of the array's subtype. If I only have the subtype and I wish to generate an array of that subtype, how do I generate the appropriate asIObjectType object?
In my case I have a registered object, which I will call "MyType". I want to instantiate an array of type "array<MyType>" at runtime from my C++ code. "array<MyType>" will most likely not already be registered, so
engine->GetObjectTypeByName("array<MyType>")
will likely return nullptr.
Thanks