remove_landscape_layer
Detach a target weight (paint) layer from a landscape by asset path or layer name, removing its influence from the terrain without deleting the layer info asset.
Instructions
Unregister a target weight (paint) layer from a landscape -- the inverse of add_landscape_layer. Identify it either by layer_info_path or by layer_name. This detaches the layer from the terrain; it does not delete the LandscapeLayerInfo asset, and any material that still blends that layer will now read zero weight for it.
Returns: { landscape_actor_name: string, layer_info_path: string, layer_name: string, layer_removed: bool, already_absent: bool, target_layer_count: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | Optional layer FName; defaults to the layer info's own GetLayerName() | |
| layer_info_path | No | Full path of the ULandscapeLayerInfoObject asset; if omitted, resolved by layer_name via the landscape info | |
| landscape_actor_name | No | Optional landscape actor name, defaults to first found |