Size in km shown in widget and material is assigned to procedural mesh
This commit is contained in:
parent
2da799d879
commit
d2a52e566d
Binary file not shown.
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue