Good practices – loose coupling
We can use Blueprint Function Libraries to move some generic functions in our project from a specific actor to a Blueprint Function Library so that they can be used in other parts of our project’s logic.
We will use Actor components to move part of some actor classes’ source code into an Actor component so that we can easily use that logic in other projects. This will keep our project loosely coupled. Loose coupling is a software engineering concept that refers to having your project structured in such a way that you can easily remove and add things as you need. The reason you should strive for loose coupling is if you want to reuse parts of one of your projects for another project. As a game developer, loose coupling will allow you to do that much more easily.
A practical example of how you could apply loose coupling is if you had a player character class that was able to fly and also had an inventory that contained several...