Size in km shown in widget and material is assigned to procedural mesh

This commit is contained in:
aollero 2022-06-01 10:42:19 +02:00 committed by bernat
parent 2da799d879
commit d2a52e566d
3 changed files with 4 additions and 0 deletions

View File

@ -668,6 +668,8 @@ bool UMapGeneratorWidget::CreateTilesMaps(const FMapGeneratorMetaInfo& MetaInfo)
Landscape->CreateLandscapeInfo();
Landscape->SetActorLabel("Landscape");
// Apply material
AssignLandscapeMaterial(Landscape);
const FString PackageFileName = FPackageName::LongPackageNameToFilename(
PackageName,

View File

@ -81,6 +81,8 @@ public:
// UFUNCTION(Category="Map Generator", BlueprintImplementableEvent)
// void GetTileHeigtmapRT(FMapGeneratorTileMetaInfo TileMetaInfo, UTextureRenderTarget2D& OutRT);
UFUNCTION(BlueprintImplementableEvent)
void AssignLandscapeMaterial(ALandscape* Landscape);
/// Function called by Widget Blueprint which generates all tiles of map
/// @a mapName, and saves them in @a destinationPath