Cooking UInstancedStaticMeshComponent Created at Runtime
Running into a slight problem when cooking an instance of an actor that contains UInstancedStaticMeshComponent that was created in OnConstruction. The cook always crashes at line 1595 of InstancedStaticMesh.cpp with means my PerInstanceRenderData isn't valid.
The creation of the component itself looks like this.
The StaticMesh comes from a struct which contains a bunch of options for which mesh to display, and any transformation randomization that may happen on that static mesh instance. I've tried various flags in the SetFlags function thinking that was perhaps my problem to no avail.
asked Aug 17 '18 at 03:12 PM in C++ Programming
Solved my own problem. Code below for anyone who runs into the same thing.
answered Aug 17 '18 at 04:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here