I need to get component data from Class Reference. And that’s it.
I am using an empty Actor class with one component.
The component has the structure I need, the data of which I want to receive. Not creating an object.
Like in a prefab in Unity.
In Unity, an object may not be created, but you can get all its data from it, and data about each of its components, without creating it.
If you are fine with writing C++, what you are doing might be better done using Data Assets
Otherwise, you could always just use a data table with a custom struct that holds the information for all your weapons (basically what you have in BP_Comp_weapon, as well as a reference to the mesh that your weapon uses, which I’m guessing is what your BP_WP_Rifle1_Mesh is.
After that, you can find the row in that data table using your ID, and get the data that you want.