I’m stuck on passing the name of the structure to variable.( <T* Class> )
I have tried with GetRow<>, But I don’t know how to put a variable instead of the structure name directly.
That’s not something you can do at all or what is shown in your BP-Screenshot. I do believe that the template parameter has to be known at compile time.
The equivalent to your screenshot is simply:
ok, understood.
What I don’t understand is why it can be done in Blueprints and in C ++ you have to specify the structure, but hey, if that’s the case, that’s the way it will be.
Because Blueprints’ underlying code is doing a lot more work to get the structure type in the return pin, and in C++ the performance is way better for you to have to use the template function to cast to the struct type in question.