I am trying to copy the components of an actor I created for testing to another actor while keeping them exactly the same, but it doesn’t work.
The actors are derived from the same parent and should be identical except for the component you are copying, but the copied component behaves differently. The original components I worked on in the test actor draw fine, but the copied components draw sparsely and stop drawing over time.
If i look closely, i’ll see that the parameters of the components i copied were not copied completely, the reference to the mesh i assigned is gone, and the collision settings are completely different. And modifying these settings doesn’t improve the drawing.
Strangely enough, if i enable the debug Show Collision flag, the copy regains the same rendering as the original.
I’m really confused…A copy is not a copy, a debug draw is a normal draw. What on earth is going on?
Copying variables will not work correctly, you will need to reset them in the new blueprint because they are not initialised in the blueprint you copy to, meaning that they will not be set under the new blueprints “Variables” tab.
What variable? It’s all variables of some kind. Collision settings and assigned meshes are also variables written inside the component. These are not copied, but some internal variables such as Default Tick and visibility settings are. I don’t know the conditions under which what is and isn’t copied.
I don’t want it to revert to the default because I want the settings to be copied. I want same components to work the same way in the same environments.