This week I continued converting the Blueprints of the Quest System, and also started converting the Dialogue System into C++. When I started converting the Blueprint into code I started by converting each variable to test if each one would work correctly with the functions in blueprint. Then I would start converting each function one by one, and making sure the C++ version would work the same as the one in Blueprint. I had created soft references for the audio and animation montage. These soft references variables worked fine as a variable, but errors occurred while I tried using them as a parameter in functions. These function would compile just fine in the editor, but after trying to rebuild the build an error happens in the audio. I plan on fixing this by researching more on soft references in C++. If there is no definitive solution, then I’ll try to find another way to solve this other than using soft references.
The only way to call a soft point reference that I found to work without any errors was to making it a const and adding a reference to it.
As of right now the Function works fine in Blueprint, but not in C++.
The variables worked fine without needing any const and referencing, but only as variables.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.