How would you create a generic component that can store a value?

I’m trying to create a component that can store a value, any value that Is to be decided upon instantiation. I know how to achieve it in C++, but I am not sure how to make it so that the type of the value can be decided in the blueprints.

Hey there

Sorry I’m not the one for c++ unfortunatley but i did come across this threadL

C++ equivalent to “expose on spawn” - Programming & Scripting / Blueprint - Epic Developer Community Forums (unrealengine.com)

Not sure if it helps!

Stewart