Is there a way to get a model assigned to a volume after it has lost its model?
I have a C++ class called ASpawnVolume which inherits from AVolume. If I make a change to the class such as add another UPROPERTY and trigger a hot reload in the editor then any instances of the ASpawnVolume in the level lose their model. So if they were a box before they are just a point.
I can’t seem to figure out how to get the model back if I am unfortunate enough to save the level. This seems like a bug in the editor. If there is any suggests on how to get the volume to have a model again, I would appreciate it. Otherwise all the volumes currently placed in the level need to be recreated completely.
To recreate:
- Create a C++ with AVolume as the base. and build.
- Add an instance of this class to your level. and save.
- With the editor open, add then comple:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = Spawn) bool Dummy;
Observe: The volume becomes just a point.
Please let me know if there is any additional information needed.