How to acess same variables in diferent classes?

And just so you know - even if you place same structure in two different classes - those are two totally separate Actors and DO NOT share anything in particular, only main Class info

But if you need to share functionality between multiple similar Actors - make the First actor fully, call it Master -something- BP

Now from this you can create children that will contain same code and if you overwrite something in Child (f.ex. BeginPlay or Button Presses) it will affect this specific child only

So if you have a Master Weapon, it can have a Magazine as any other weapon but different amount of Max Bullets

It’s easier and faster to maintain Children Actors instead of separate actors, especially if those share same functionality (even partially)

1 Like