editor.datalayer.getAll
Returns all data layers with complete state and visibility information.
No parameters.
Returns:
| Name | Type | Description |
|---|---|---|
layers | array | Each: {layer_name, full_name, asset_name, runtime_state, effective_runtime_state, initial_runtime_state, is_initially_visible, is_visible, layer_type, is_runtime, parent_name} |
count | number | Number of data layers |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.getAll" } editor.datalayer.getState
Returns the current state and visibility of a specific data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
layer_name | string | Yes | Data layer name |
Returns:
| Name | Type | Description |
|---|---|---|
layer_name | string | Layer name |
runtime_state | string | "unloaded", "loaded", or "activated" |
effective_runtime_state | string | Effective state (considering hierarchy) |
initial_runtime_state | string | Initial runtime state |
is_visible | bool | Whether layer is visible |
is_runtime | bool | Whether layer is a runtime layer |
layer_type | string | "runtime" or "editor" |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.getState", "params": { "layer_name": "Gameplay" } } editor.datalayer.setState
Sets the initial runtime state of a data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
layer_name | string | Yes | Data layer name |
state | string | Yes | "unloaded", "loaded", or "activated" |
recursive | bool | No | Apply to child layers (default false) |
Returns:
| Name | Type | Description |
|---|---|---|
success | bool | Whether state was set |
layer_name | string | Layer name |
new_state | string | New state |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.setState", "params": { "layer_name": "Gameplay", "state": "activated" } } editor.datalayer.getActors
Returns all actors assigned to a specific data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
layer_name | string | Yes | Data layer name |
Returns:
| Name | Type | Description |
|---|---|---|
actors | array | Each: {actor_name, actor_class} |
count | number | Number of actors |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.getActors", "params": { "layer_name": "Gameplay" } } editor.datalayer.getDetails
Returns detailed information about a specific data layer including parent, visibility, and actor count.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Data layer name |
Returns:
| Name | Type | Description |
|---|---|---|
label | string | Short layer name |
full_name | string | Full layer name |
layer_type | string | "runtime" or "editor" |
is_visible | bool | Current visibility |
is_initially_visible | bool | Initial visibility setting |
is_runtime | bool | Whether layer is runtime |
initial_runtime_state | string | Initial runtime state |
effective_runtime_state | string | Effective state in hierarchy |
is_loaded_in_editor | bool | Whether loaded in editor |
parent | string | Parent layer name (if any) |
actor_count | number | Number of actors in this layer |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.getDetails", "params": { "name": "Gameplay" } } editor.datalayer.create
Creates a new data layer, optionally under a parent.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
parent | string | No | Parent layer name (omit for top-level) |
Returns:
| Name | Type | Description |
|---|---|---|
success | bool | Whether layer was created |
label | string | New layer's short name |
full_name | string | New layer's full name |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.create" } editor.datalayer.delete
Deletes a data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Data layer name to delete |
Returns:
| Name | Type | Description |
|---|---|---|
success | bool | Whether layer was deleted |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.delete", "params": { "name": "TempLayer" } } editor.datalayer.rename
Renames a data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Current layer name |
new_name | string | Yes | New layer name |
Returns:
| Name | Type | Description |
|---|---|---|
success | bool | Whether rename succeeded |
new_name | string | Resulting layer name |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.rename", "params": { "name": "OldName", "new_name": "NewName" } } editor.datalayer.addActor
Adds an actor to a data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Data layer name |
actor | string | Yes | Actor label |
Returns:
| Name | Type | Description |
|---|---|---|
success | bool | Whether actor was added |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.addActor", "params": { "name": "Gameplay", "actor": "BP_Enemy_0" } } editor.datalayer.removeActor
Removes an actor from a data layer.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Data layer name |
actor | string | Yes | Actor label |
Returns:
| Name | Type | Description |
|---|---|---|
success | bool | Whether actor was removed |
Example Request:
{ "jsonrpc": "2.0", "id": 1, "method": "editor.datalayer.removeActor", "params": { "name": "Gameplay", "actor": "BP_Enemy_0" } }