Navigation
API > API/Plugins > API/Plugins/LandscapePatch
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- ALandscapeBlueprintBrushBase
- ALandscapePatchManager
References
| Module | LandscapePatch |
| Header | /Engine/Plugins/Experimental/LandscapePatch/Source/LandscapePatch/Public/LandscapePatchManager.h |
| Include | #include "LandscapePatchManager.h" |
Syntax
UCLASS&40;&41;
class ALandscapePatchManager : public ALandscapeBlueprintBrushBase
Remarks
Acts as the "blueprint brush" as far as the owning edit layer is concerned. In reality, has its contained patches edit the height/weight maps.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< ALandscape > | DetailPanelLandscape | The owning landscape. | |
| FTransform | HeightmapCoordsToWorld | ||
| TArray< TSoftObjectPtr< ULandscapePatchComponent > > | PatchComponents |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ALandscapePatchManager
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddPatch
(
TObjectPtr< ULandscapePatchComponent > Patch |
||
| bool | ContainsPatch
(
TObjectPtr< ULandscapePatchComponent > Patch |
||
| FTransform | For use by the owned patch objects. | ||
| int32 | GetIndexOfPatch
(
TObjectPtr< const ULandscapePatchComponent > Patch |
Gets the index of a particular patch in the manager's stack of patches (later indices get applied after earlier ones. | |
| void | MovePatchToIndex
(
TObjectPtr< ULandscapePatchComponent > Patch, |
Moves patch to given index in the list of patches held by the manager (so that it is applied at a particular time relative to the others). | |
| bool | RemovePatch
(
TObjectPtr< ULandscapePatchComponent > Patch |
||
| void | SetTargetLandscape
(
ALandscape* InOwningLandscape |
Adds the brush to the given landscape, removing it from any previous one. |
Overridden from ALandscapeBlueprintBrushBase
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | AffectsWeightmapLayer
(
const FName& InLayerName |
||
| void | Initialize_Native
(
const FTransform& InLandscapeTransform, |
These get called by the landscape system to apply the patches to the height/weight maps. | |
| UTextureRenderTarget2D * | RenderLayer_Native
(
const FLandscapeBrushParameters& InParameters |
||
| void | SetOwningLandscape
(
ALandscape* InOwningLandscape |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | IsEditorOnly () |
Called during saving to determine if the object is forced to be editor only or not | |
| bool | Called during saving to determine the load flags to save with the object. | ||
| bool | Called during saving to determine the load flags to save with the object. | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostEditUndo () |
UObject. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsAffectingWeightmapLayer
(
const FName& InLayerName |
Use AffectsWeightmapLayer |