Passing generic Structure Object to C++ Function
I'm trying to implement a function in C++ to which I can pass an object of any structure as a parameter.
Unfortunately this fails because of the type of the passing parameter.
Here is an example of what I would like to accomplish with an user defined structure:
It seems like the type needs to be FStructOnScope, so, my function would need to look like
But FStructOnScope isn't supported, is that the wrong type or is there a way to accomplish what I want?
Thank you in advance
asked Mar 21 '19 at 10:36 AM in C++ Programming
Got it working with some variation of https://forums.unrealengine.com/community/community-content-tools-and-tutorials/27351-tutorial-how-to-accept-wildcard-structs-in-your-ufunctions?56537-Tutorial-How-to-accept-wildcard-structs-in-your-UFUNCTIONs=
It's not nice, but atleast it works.
answered Mar 21 '19 at 05:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here