Skip to content

editor_toolset.toolsets.data_asset.DataAssetTools

Provides tools for working with Data Assets.

1 tool(s).

editor_toolset.toolsets.data_asset.DataAssetTools.create

Creates a new DataAsset asset in the project.

    Args:
        folder_path: The path to the folder that will contain the asset.
        asset_name: The name of the asset in the folder.
        asset_type: The specific kind of DataClass to make.

    Returns:
        The DataAsset that was created.

Input schema

{
  "properties": {
    "asset_name": {
      "type": "string"
    },
    "asset_type": {
      "description": "Represents a reference to a UObject or UClass.",
      "properties": {
        "refPath": {
          "description": "The reference stored as a soft path string.",
          "type": "string"
        }
      },
      "required": [
        "refPath"
      ],
      "title": "/Script/CoreUObject.Class",
      "type": "object"
    },
    "folder_path": {
      "type": "string"
    }
  },
  "required": [
    "folder_path",
    "asset_name",
    "asset_type"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "returnValue": {
      "description": "Represents a reference to a UObject or UClass.",
      "properties": {
        "refPath": {
          "description": "The reference stored as a soft path string.",
          "type": "string"
        }
      },
      "required": [
        "refPath"
      ],
      "title": "/Script/Engine.DataAsset",
      "type": "object"
    }
  },
  "required": [
    "returnValue"
  ],
  "type": "object"
}