Trouble calling blueprints in C++
I have a blueprint for an item database called MyItemDatabase. The referrence to the blueprint is as follows:
I tried to initiate this blueprint in my GameMode.cpp using the following:
This compiles perfectly fine, but whenever I begin initializing the editor I get an error stating that it cannot find the blueprint. I think this is because my reference starts with "Blueprint" and will not work with UClass.
I have tried instead using UBlueprint instead of UClass as I saw it in several snippets posted here, but then I fail to compile due to the following error:
This error led me to try to use UObject instead and now it works perfectly fine, but It looks like I cannot find any other examples of someone using UObject with FObjectFinder and now I'm confused if I'm doing something i'm not.
This leads me to several questions that I would love to have answered:
asked Sep 29 '14 at 06:11 AM in Using UE4
Hello TimGS, Thanks for the response. While it is not really an answer to any of my questions in my post, it is an example of the next step of the process, and also the answer to a question I had yet to ask, but have been working on, so I appreciate the assistance.
When I try to compile that line I get the following error:
I had already tried this before I posted my original question which led me to wonder if I should even be using UObject in the first place.
Ultimately I want to be able to do something like this:
But having trouble getting a class from the object.
answered Sep 29 '14 at 04:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here