Get Reference to a Blueprint-created Game Mode in C++
So I've found how to get references to blueprints within C++ using ConstructorHelpers. However, what I want to do is to get a reference to my custom Game Mode that I've created in a blueprint, but not in C++ code, for a class that I'm making in C++. The issue Im facing is that my custom Game Mode class isnt showing up as a valid class to use. Do I need to recreate my game mode class in C++, or is there a way to get the blueprint version in C++?
You can't generally see a pure blueprint class in C++. This is basically because blueprint does not have C++ headers.
Some possible solutions are:
I personally would recommend 3 since it allows mixing C++ and Blueprint in pretty flexible ways. But I've just spent some time figuring out how interfaces in C++ and Blueprint work which is pretty complicated so you might prefer a different approach.
Good luck, -X
answered Apr 24 '15 at 09:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here