Loading text to a string
I'm trying to load text from a .txt file to a string, to use in my level blueprint. To test this, when pressing the q key some words from my text file should be printed ot the screen. However, nothing happens. Any ideas where I'm going wrong? Here's the code: .CPP
.H
The Blueprint Coding is not my strong point so any help is appreciated. Thank you! - SB7
(comments are locked)
|
Nevermind I was an idiot. It turns out the text files have to be in the project directory and not just anywhere on the drive! The code works fine after all, case closed. :)
(comments are locked)
|
Your answer
Follow this question
Once you sign in you will be able to subscribe for any updates here
Some debug information would help you and the rest of us get started - If you set a breakpoint within your FileLoadAndReturnString function in C++, is the breakpoint triggered?
If not, you should set a breakpoint on the Q Pressed event node in Blueprint. There are a few things that can screw up input.
Without knowing where things are going wrong, it's harder to offer solutions.