Uncharted Territory for me, I have an actual C++ script I need to run before or when the game runs that detects how many monitors the system has and then start it on the second monitor. I have the code available from;
But, I have only worked in blueprints up until now. I have Visual studio up with a blank face wondering what to do now.
Big questions that I don’t know,
a. Where to I put the script?
b. How do I make sure the game call the script?
c. I assume It (the .cpp file) doesn’t have to be named anything specific, right?
d. Can this be done in Blueprint?
e. What’s the easiest way to buy you a coffee/beer?
I’m eternally grateful for anyone taking the time to get me pointed in the right direction.
Edit01: I found the FDisplayMetrics from;
https://docs.unrealengine.com/latest/INT/API/Runtime/Core/GenericPlatform/FDisplayMetrics/index.html
Though I have been trying, I’m having no luck calling to it. I was thinking that I could cast to it and then break open the information like monitor info to just be able to dig deeper - nadda. I see that it say’s Struct so I tried to find and assign the struct to break that apart - nadda. It might be painfully obvious that I’m completely lost, because I am. I’ve been digging in the doc’s, fingers crossed.