Changes made to the property matrix does not load after restart. This occurs only if the editor is restarted and not when the blueprint is closed and reopened.
The information is stored inside TArray of structures
Before Editor Restart:
After Editor Restart:
.h - The Structure
USTRUCT()
struct FAttachedBuildingActor
{
GENERATED_USTRUCT_BODY()
FAttachedBuildingActor();
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Attached Building")
UStaticMeshComponent* actorBuildingMesh;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Attached Building")
USkeletalMeshComponent* actorDestructionMesh;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Attached Building")
TArray<UMaterialInterface*> actorMaterialList;
void RestoreActorMaterials();
void SaveActorMaterials();
void OnBuildingPlaced();
void OnDestroyBuilding();
};
.h - Main Class
UPROPERTY(EditAnywhere, Category = "Building Properties")
TArray<FAttachedBuildingActor> attachedBuildingActors;