assign_actor_to_data_layer_instance
Assign an editor-world actor to a World Partition data layer instance by asset path; requires the data layer asset to be instanced in the map first.
Instructions
Assigns an editor-world actor to a data layer instance. Uses UDataLayerEditorSubsystem::AddActorToDataLayer 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).
Returns: { actor_name: string, data_layer_asset_path: string, instance_name: string, short_name: string, assigned: 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 (must be instanced in the world first via create_data_layer_instance). |