The easiest way, implement the camera inside the character class?
Is this the only correct solution?
I’ve only just come across UE, before that I had experience with Unity and they used a slightly different approach - implementing the camera separately from the player, in order to make it easier to edit the camera code without affecting the character.
Yeah, this is making more sense now. I had the same problem since I was a Unity programmer for 5 years before switching everything over in my latest project to Unreal. In Unity, everything is an object and they all derive from Monobehaviour, so you can attach anything to anything. In Unreal, the inheritance tree is complex and each class has its own way of being used.
Here is a high-level overview of the code architecture:
As you can see, this is not something that can be explained easily on a forum. I would recommend taking a course on how to code in Unreal in C++ and learn the basics first because there are a lot of quirks about Unreal that you need to learn before you can do anything complicated.
Here is a Youtube course for Unreal for Unity developers:
This course isn’t bad either:
https://www.udemy.com/course/unrealcourse/
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.