Download

Cannot Move Instanced C++ class

I made a spawn volume in C++ and created an instance in the editor by dragging and dropping but anytime I try to adjust the location it just snaps back to the original location. How do I fix this without instancing the class via blueprint?

Can you post your code? You might be setting the objects location in the constructor or in a method that is getting called each time you try to move the object in the editor.

I am editing the location in the editor not in code.

Do you have any code on the ** OnConstruction** method? This method is called automatically every time you edit any property in the editor. Probably you are setting here the original position.

Im not sure what was going on last night but its working now.