Hi all ?
I'm wrapping a class that I cannot alter (Unreal Engine's FScriptArray, as TArray<T>) and need a way to get the typeInfo in method calls.
For TArrays created in script, the constructor I registered caches the TypeInfo in a map from FScriptArray* to TypeInfo*. This works fine as I can just query this map for the info I need in the member calls.
The issue is for FScriptArrays that are created in the application and passed to script. The constructor isn't called on them, so I need another way to get the TypeInfo.
Ideally, I could store what I need in some user data from the template callback, but I need a way to access that user data from member functions.
Does anyone have an idea or tips for this?