Common static variable across blueprint objects

Blueprint does not support static variables as well global variables, you would need to make single global object to hold such variable or use existing one (like GameMode class) or use other method of containing unit data. In C++ it’s easier, you not only can use static variables, you can access variable defaults via default object in UClass (thats what you see as purple type in blueprint).

I think ability to get class defaults in blueprint is great idea for suggestion in feedback forum :slight_smile:

1 Like