Trying to understand the relationship between C++ and BP

Depends on what do you mean by “Expose”, if you want to see it in Default Value Editor, you must have the property Width as a class field in c++ (inheriting from the class with the field works as well) and create BP based on that class. If you just want to use the variable you could keep a reference to the object having that Width property and then use it from the blueprints as well

1 Like