i want to add somes functionalities / variables to all my actors.
i can make a blueprint “BP_MyActor” that inherit from AActor and add my variables and function into BP_MyActor then inherit all my futur actors from BP_MyActor but… i have playercontrollers, pawns, characters that they inherit from AActor too and they wont have the functionnality and variables that i added into BP_MyActor because they inherit from AActor.
so the solution would be to open the AActor class file of the engine and add functionnality here but… if unreal engine get a new update my AActor class will be overwritten by the new version… and i dont want to edit engine class i prefere to extend them
an other solution would be to make an actor component, create function and variable inside this component and then add my component into every actor. i hate this solution too
bha i am lost at this moment, how do you deal with this problem when you want to add base functionnality / variables to all your actors ?