Can somebody link to me a proper tutorial that explains the following:
- how can I add c++ classes to visual studio and make them visible in Unreal editor
- how can I add the files from this topic (the readme assumes I already know the first point) to a current unreal-vs working project?
- how and in how many ways can I configure opencv to work with unreal project?
What I did was to copy the source files in the project directory. Visual studio does not see them. So I added a new folder inside visual studio (called filter) and then dragged the files inside that folder. Now it can see it, but editor do not. Then the readme asks me to create a blueprint as a subclass of VideoDisplaySurface. How am I supposed to do that, since editor cannot see the classes I just added?
The steps to do are not clear to me.
I then closed the editor and tried to compile. And I have a lot of LINKER errors (yes I renamed the .h correctly even though it was not written in the readme).
And now, when I try to open editor again it asks me to recreate the .dll . And whether I say no or yes (compile fails) editor won’t open. So now I am stuck.
I am using latest version of the engine (it is the one Epic Launcher installs) and I was able to import the three classes in the project. As far as I understood only classes that derive from UE classes can be viewed in the editor.
Still I have linking issues. In particular after adding the class AVideoDisplaySurface. I have updated the constructor for the new UE version, but these linking errors I still don’t understand where they come from. Some errors on Texture2D are displayed I will look into it.
ok so when I add OpenCVVideoSource or VideoDIsplaySurface gives me the same dllimport errors. Probably related to opencv. I get sometimes that visual studio compile while UE does not. I hate this.
Is there any tutorial to how configure opencv with unreal engine? Does it have to be a plugin? Or a lib? Personally I used unreal tutorial on how to implement third party static lib. Don’t know other ways…
EDIT3: I got it to compile from Unreal editor, but not from VS by creating a project from scratch. Watch out UE deletes your configurations if you run refresh vs project.
Anyway I cannot create the BLUEPRINT to derive from VideoDisplaySurface… that is because UE does not see VideoDisplaySurface at all!! As any of the classes I put into vs.
Do you mean I have ALWAYS to create classes from within UE??? This is dumb