Changing component types causes corrupted BP
Just was wondering if this is a known issue:
1: create a class with a certain component type such as a skeletal mesh ect
2: connect a BP to the class
3: Change the component to something else like a static mesh via C++
What happens: When you click on the changed object in the bp, There are no object details so this forces you to create a new BP with the class
Is there a way to get around this without having to create a new BP?
After reading through this post I noticed that the bug being reported (the details window being blank after changing a code component) has been fixed and tested on our internal 4.8 build. Please let me know if you're still seeing this issue once 4.8 is released.
answered May 29 '15 at 03:48 PM
There are definitely some issues with the robustness of the interaction between C++, Blueprint and CDOs. It can lead to some really awkward to solve problems. I'm not certain this is the issue you have, but the following may help.
I'm assuming you were initializing the component in C++ in the constructor. When you change the component type, the next time you load your BP it will fail to load the property, and probably sets it to null.
If you now put EditAnywhere in your component property specifiers rather than VisibleAnywhere, then build and run, in your Blueprint you should then see the yellow 'reset to default' arrow next to your component in the details panel. Hopefully if you click that, it will reinitialize the blueprint's component back to whatever you assigned to the new component in your class constructor. If so, you can then just save the BP and then switch back to VisibleAnywhere again.
Okay, this is not a solution or an answer, however it seems that the detail panel is broken only in the full blueprint editor. If you drag your class blueprint in the scene view and inspect its components they are fine (including the previously broken one!).
I am using Unreal 4.7.5. Did this shed any light?
answered Apr 18 '15 at 08:40 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here