Hi.Can i make a general function that add for example 2 function to other 50 blueprints?
It depends what you want it to do.
You can use a Blueprint Macro Library to add macros to all blueprints which inherit from the class you selected when creating it.
For example everything you can place in a level inherits from “Actor”. Absolutely everything inherits from “Object”.
However you only have access to the functions within the base class. This means an “Object” macro will not be able to do anything with locations. It will pretty much only be able to do math and very few things that have to do with any gameplay.
Actor has location and quite a few utility functions already but if you need access to your characters velocity that would be out of reach. To get that you’d need to base your macro library on “Character” but then again all regular actors wouldn’t have access to the macro.
Alternatively inheritance does exactly that. You can create a new blueprint, add some functions and then base all your other objects on that blueprint meaning they are children and will have all functions and variables within their parents.
Does this help already?
Yes , it helps me , thank you very much!
If it did solve your question could you please mark accept it so other people who wanna help know you’re already good to go?
Thanks!
And how to do this? ==D
That little button right there