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

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