set_data_layer_runtime_state
Changes a World Partition data layer's runtime state (Unloaded, Loaded, or Activated) during PIE to control live streaming behavior.
Instructions
Sets the LIVE runtime state ("Unloaded"|"Loaded"|"Activated") of a runtime data layer in a running World Partition game (PIE). Requires a World Partition map; outside PIE this is an honest gate (applied:false + note pointing to set_data_layer_initial_runtime_state) rather than a failure.
Returns: { data_layer_asset_path: string, runtime_state: string, applied: bool, success: bool, note: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_recursive | No | Also apply to child data layers (optional, default false). | |
| runtime_state | Yes | "Unloaded", "Loaded" or "Activated". | |
| data_layer_asset_path | Yes | Full /Game path to the (runtime) data layer asset. |