add_landscape_layer
Register a LandscapeLayerInfo asset as a weight layer on a landscape, enabling weight storage and material blending. Do this before painting, or nothing is written.
Instructions
Register a LandscapeLayerInfo asset as a target weight (paint) layer on a landscape, so the terrain can store weight for it and the material's LandscapeLayerBlend can read it. Step 2 of three, between create_landscape_layer_info and paint_landscape_layer -- painting a layer that was never registered writes nothing. Already-registered layers return already_present=true; remove_landscape_layer is the inverse, get_landscape_layers lists what is registered now.
Returns: { landscape_actor_name: string, layer_info_path: string, layer_name: string, layer_added: bool, already_present: bool, target_layer_count: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_info_path | Yes | Full path of the ULandscapeLayerInfoObject asset | |
| landscape_actor_name | No | Optional landscape actor name, defaults to first found |