remove_actor_from_data_layer_instance
Removes an editor-world actor from a World Partition data layer instance by data layer asset path. Reports removed=false when the actor was not in that layer.
Instructions
Removes an editor-world actor from a data layer instance (inverse of assign_actor_to_data_layer_instance). Uses UDataLayerEditorSubsystem::RemoveActorFromDataLayer against the data layer instance referencing the given asset. Requires a World Partition world; on a non-WP (default) map this returns an honest error (no editor-world swap). Idempotent: removed=false means the actor was not in the layer (not an error).
Returns: { actor_name: string, data_layer_asset_path: string, instance_name: string, short_name: string, removed: bool, message: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Label or name of the actor in the editor world. | |
| data_layer_asset_path | Yes | Full /Game path to the UDataLayerAsset (the instance referencing it must exist in the world). |