Skip to content

Management

20 tools for assets as files (rename, move, duplicate, delete), primary assets, their rules and bundles, plugin status, and class purity audits.

Back to the index.

add_primary_asset_rule

Destructive Idempotent

Add a PrimaryAssetTypesToScan rule to the Asset Manager project settings, or update the rule of that type, then write DefaultGame.ini (no undo); a failed write makes success false. An update always resets the base class (to UObject when base_class_path is omitted), appends directory unless already listed and sets priority only when given; idempotent. Nothing is rescanned: run scan_primary_assets so the running Asset Manager registers the assets. Cook rules: set_primary_asset_cook_rule; inverse: remove_primary_asset_rule; list rules: get_primary_asset_types.

Parameter Type Required Description
primary_asset_type string yes Logical type name, e.g. "Item"
base_class_path string no Asset base class path (defaults to UObject)
directory string no Content directory to scan for this type
priority number no Scan rule priority (optional)

Returns: { type, base_class, saved, updated_existing, directory_count, type_count }

audit_class_purity

Read-only

Read-only "fork purity" audit of inheritance (audit_fork_refs audits a fork's internal refs): walks every Blueprint class under class_root up its parent chain and flags a project class that crosses DIRECTLY into a base library (base_libraries, e.g. /Game/VendorPack) without passing a declared fork, a class carrying the fork-origin tag (project setting Fork Origin Tag) that fork_class_chain writes. Classes are loaded, never saved; Widget and Anim Blueprints are out of scope. A fork without the tag reports as a violation (back-fill it with set_asset_metadata_tag). The tag is checked for truth: a class whose tagged fork origin is not in its ancestor chain (a copy-sibling, a stale tag after a re-parent) reports fork_origin_mismatch.

Parameter Type Required Description
class_root string no Own content tree to audit. Defaults to the project setting Project Content Root ("/Game" unless configured).
base_libraries array no Array of upstream roots a project class must not inherit from directly. Defaults to the project's Read Only Content Roots.
recursive boolean no Optional bool (default true). Recurse into subfolders.
max_results number no Cap on classes processed (clamped 1..100000). Defaults to 5000.
max_depth number no Max parent-chain steps to ascend within class_root (clamped 1..256). Defaults to 32.

Returns: { class_root: string, base_libraries: [string], summary: { class_count: int, pure_fork_count: int, native_rooted_count: int, other_parent_count: int, violation_count: int (missing_fork_tag + fork_origin_mismatch; == violations.length), missing_fork_tag_count: int, fork_origin_mismatch_count: int, distinct_impure_fork_points: int }, classes: [{ class, package, immediate_parent, fork_point, boundary_parent, boundary_kind, boundary_library, is_declared_fork, fork_origin, fork_origin_in_chain: bool, fork_origin_matched_ancestor: string, fork_origin_exists: bool, verdict: "pure_fork"|"native_rooted"|"other_parent"|"violation"|"fork_origin_mismatch" }], violations: [{ class, kind: "missing_fork_tag"|"fork_origin_mismatch", fork_point, boundary_parent, boundary_library, declared_fork_origin?, actual_immediate_parent?, fork_origin_exists?, actual_ancestor_chain?: [string], detail? }], message: string }

audit_fork_refs

Destructive

Audit a fork subtree for references that still point at the SOURCE tree it was copied from (duplicate_asset / duplicate_directory by script do NOT remap internal refs, so a copy keeps pointing at the original -- e.g. a MaterialInstance Parent still under /Game/VendorPack). Reports, per fork asset, the source dependencies (authoritative, from the AssetRegistry) and, best-effort, the exact PROPERTY holding each source object ref. With fix=true it FArchiveReplaceObjectRefs each source object to a same-named counterpart found inside the fork and saves the asset.

Parameter Type Required Description
fork_root string yes Fork content path to audit, e.g. '/Game/MyGame/Environment/AutoLandscape'.
source_root string no Origin tree the refs should not point at (optional; defaults to the project's Read Only Content Root when exactly one is configured).
include_properties boolean no Optional bool (default true). Load each offending asset and report which property holds each source ref (best-effort; the dependency list is authoritative).
fix boolean no Optional bool (default false). Remap source object refs to a same-named fork counterpart via FArchiveReplaceObjectRef and save the asset.
max_assets number no Max fork assets to scan (optional, default 2000; clamped 1..20000).
dependency_type string no Optional string, one of "hard"|"soft"|"all" (case-insensitive, default "all"). Scopes the per-asset dependency scan: "hard" surfaces only load-bearing refs into source_root (e.g. a MaterialInstance Parent, a hard object property) -- the correctness-critical case this audit exists for; "soft" surfaces only soft/lazy refs (TSoftObjectPtr, FSoftObjectPath); "all" (default) leaves the scan unscoped.

Returns: { fork_root: string, source_root: string, fix: bool, dependency_type: string, assets_scanned: int, offending_count: int, total_source_dependencies: int, offenders: [{asset, package, source_dependencies:[string], properties:[{property, ref}], remapped:int}], fixed_assets: int, refs_remapped: int, unresolved_counterparts: [string], message: string }

delete_asset

Destructive

Pack assets: enable_toolset adds it to a client's list (tool lists).

Force-delete one asset with no confirmation or undo: references to it are nulled, the object is purged and its .uasset/.umap file removed from disk. Check get_asset_referencers first. Succeeds only when the file is gone from disk and the object from memory: a file left behind (read-only, or held open by another process) fails the call with file_still_exists true, and the asset comes back when the editor restarts. With expected_class it is a typed delete: an asset of any other class is refused and nothing is deleted, and a path with no asset is a no-op success.

Parameter Type Required Description
asset_path string yes Asset to delete, as an object path ("/Game/Props/SM_Box.SM_Box") or a bare package path ("/Game/Props/SM_Box")
expected_class string|array no Optional class the asset must be, or a list of classes it may be any one of, as short names ("AnimSequence") or /Script/ paths ("/Script/Engine.StaticMesh"). A Blueprint asset also passes when its generated class derives from one ("Subsystem" accepts a subsystem Blueprint). Another class is refused with success false, deleted false, expected_class_matched false, its asset_class (and generated_class_name for a Blueprint) and a note, and nothing is deleted. With it, a path that names no asset is a no-op: success, deleted false, already_existed false. A name that resolves to no class is an error.

Returns: { asset_path: string, object_path: string, asset_class: string (class path), asset_class_name: string (short class name of the asset), generated_class_name?: string, expected_class_matched?: bool, package_name: string, original_file_size_bytes: number, original_file_size_mb: number, delete_success: bool, delete_message: string, asset_verified_deleted: bool, file_still_exists: bool, deleted: bool, already_existed: bool, note?: string, deletion_timestamp: string? }

duplicate_asset

Additive

Pack assets: enable_toolset adds it to a client's list (tool lists).

Duplicates an asset to a new name, in the same directory or in destination_path, then PERSISTS the copy to disk immediately (unless Play-In-Editor is active -- see the "saved"/"save_error" note on the save step below; a duplicate is very often used AS a safety net before a risky edit, so leaving it memory-only defeats the point). A target name already taken, in memory or on disk, is refused with nothing touched, unless if_exists='return' hands back an existing asset of the source's class with created=false; a destination outside the project's writable content (engine content, a read-only root, no mounted root) is refused, and so is a source that is not of expected_class when one is given. By default (remap_internal_refs absent/false) this is otherwise a plain copy: like EditorAssetLibrary.duplicate_asset, any internal references the copy holds still point at the ORIGINAL (not remapped). Set remap_internal_refs=true to run the SAME 2nd-pass reference remap that duplicate_directory uses (FArchiveReplaceObjectRef mapping original->copy) so the copy's own self-references point at the copy, before that save. repoint_parents_within additionally re-applies a MaterialInstance parent via SetParentEditorOnly when the parent maps into the copied set (for a single asset this only fires if the copy's parent is the original itself).

Parameter Type Required Description
asset_path string yes Full asset path to duplicate (e.g. /Game/Assets/MyAsset); engine content such as /Engine/BasicShapes/Cube can be copied into the project with destination_path
new_asset_name string yes Name for the duplicated asset
destination_path string no Optional folder for the copy, a long package path (/Game/MyMeshes, a project plugin mount) or a folder relative to /Game; default the source asset's own folder
if_exists string no Optional "error" (default: a taken target name is refused) or "return" (an asset of the source's class already at the target is returned untouched with created=false; one of another class is still refused)
expected_class string|array no Optional class the SOURCE asset must be, or a list of classes it may be any one of, short names ("SkeletalMesh") or /Script/ paths; a Blueprint also passes when its generated class derives from one. Any other source is refused and nothing is duplicated; a name that resolves to no class is an error.
remap_internal_refs boolean no Optional bool (default false). When true, remap the copy's internal refs (original->copy) before the save; adds { new_path, refs_remapped } to the result.
repoint_parents_within boolean no Optional bool (default false). When true (and remap_internal_refs true), also re-apply MaterialInstanceConstant parents that map into the copied set via SetParentEditorOnly.

Returns: { original_asset_path: string, new_asset_name: string, new_asset_path: string, destination_path: string, created: bool, duplication_success: bool, duplication_message: string, new_asset_class: string, new_package_name: string, asset_verified: bool, new_file_size_bytes: number?, new_file_size_mb: number?, original_asset_class: string, original_package_name: string, new_path: string?, refs_remapped: int?, saved: bool?, save_error: string? }

duplicate_directory

Destructive

Recursively copy a content folder to a new path, REMAPPING references among the copied assets so the new subtree points at its own copies (true graph isolation) while references to assets OUTSIDE the set stay shared with the originals (the "copy what you modify, share the rest" policy). Unlike EditorAssetLibrary.DuplicateDirectory / duplicate_asset (which copy without remapping, so copies keep pointing at the originals), this duplicates every asset then runs a second reference-replacement pass with the full old->new map, and saves the copies. Intended for material/instance/texture/data-asset libraries; Blueprints may need a recompile and maps (UWorld) are not handled specially.

Parameter Type Required Description
source_path string yes Source content folder, e.g. /Game/VendorPack/Environment/AutoLandscape
dest_path string yes Destination content folder, e.g. /Game/MyGame/Environment/AutoLandscape

Returns: { source_path: string, dest_path: string, source_asset_count: int, duplicated_count: int, remapped: bool, new_asset_paths: [string] }

get_all_primary_asset_types

Read-only

List the primary asset types the running Asset Manager has registered, read-only: each entry of types holds the type name, its asset_class (base class path), num_assets from the last scan, has_blueprint_classes, is_editor_only and its directories, and count says how many entries there are. asset_type_name narrows it to one type, with found false (and an empty list) for a type the manager does not know, not an error. This is the live registry, not the project settings, so it includes types registered by game code and its counts cover scanned assets only (rescan with scan_primary_assets); the configured PrimaryAssetTypesToScan rules with their cook rules are get_primary_asset_types. An uninitialized Asset Manager is an error. A type's asset ids: get_primary_asset_ids_by_type.

Parameter Type Required Description
asset_type_name string no Optional name of one primary asset type (e.g. "Item") to read alone; omitted lists every registered type.

Returns: { types: [{ name, asset_class, num_assets, has_blueprint_classes, is_editor_only, directories: [string] }], count, asset_type_name?, found? }

get_asset_bundle_data

Read-only

Read every asset bundle tagged on one asset from the Asset Registry, without loading it: for each bundle its bundle_name, asset_paths and num_assets, plus bundle_count and asset_found. Bundles are the soft references a primary asset (typically a data asset) marks with AssetBundles meta, which the Asset Manager loads together; use this to see what each bundle would pull in. To read one bundle of a primary asset by its id from the Asset Manager's cache use get_asset_bundle_entry; get_primary_asset_id turns a path into that id. Read-only and idempotent. An asset with no bundles, or a path the registry does not know (asset_found=false), returns an empty list rather than an error; only an uninitialized Asset Manager is an error.

Parameter Type Required Description
asset_path string yes Full object path including the object name, e.g. /Game/MyGame/DA_Sword.DA_Sword (find_assets_by_name gives it); a package-only path such as /Game/MyGame/DA_Sword does not resolve to the asset and answers asset_found=false.

Returns: { bundle_name, asset_paths, num_assets, asset_path, asset_found, bundles, bundle_count }

get_asset_bundle_entry

Read-only

Read one named asset bundle of a primary asset from the running Asset Manager's bundle cache (UAssetManager::GetAssetBundleEntry), loading nothing: bundle_objects lists the asset paths in it. Only scanned primary assets are cached, so an unscanned asset, an unknown bundle, a malformed id or an empty bundle all give found=false with an empty list, not an error. For every bundle of one asset by object path, read from the Asset Registry, use get_asset_bundle_data; get_primary_asset_id turns a path into the id.

Parameter Type Required Description
primary_asset_id string yes Primary asset ID in "Type:Name" format
bundle_name string yes Name of the asset bundle

Returns: { primary_asset_id, bundle_name, bundle_objects, found }

get_plugin_status

Read-only

Read one plugin by name, read-only: Enabled or Disabled, version, author, category, base dir, .uplugin file, dependencies and modules. An unknown name returns plugin_status "Not Found" with "N/A" fields, not an error. plugin_loaded only mirrors plugin_enabled. The .uplugin has no creation date: plugin_created_date is the creation time of the .uplugin file on disk (ISO 8601, empty when unknown), which is when it was installed or copied, and plugin_created_by_url holds the descriptor's CreatedByURL. To list every plugin use list_plugins.

Parameter Type Required Description
plugin_name string yes Name of the plugin to query, as its .uplugin file is named (e.g. "UEAgent")

Returns: { plugin_name: string, plugin_status: string, plugin_version: string, plugin_description: string, plugin_author: string, plugin_created_date: string, plugin_created_by_url: string, plugin_category: string, plugin_loaded: bool, plugin_enabled: bool, plugin_path: string, plugin_file: string, plugin_dependencies: [{ name: string, enabled: bool, optional: bool, version: string }], plugin_modules: [{ name: string, type: string, loading_phase: bool }], plugin_message: string, plugin_manager_version: string, plugin_search_paths: string, plugin_status_timestamp: string }

get_primary_asset_id

Read-only

Look up the registered Primary Asset Id ("Type:Name") of an asset path: primary_asset_id, is_valid and, when valid, primary_asset_type and primary_asset_name. A non-primary or unscanned asset gives is_valid=false, not an error; an uninitialized Asset Manager is an error. All ids of one type: get_primary_asset_ids_by_type; to make a type scannable, add_primary_asset_rule then scan_primary_assets.

Parameter Type Required Description
asset_path string yes Full object path including the object name, e.g. /Game/MyGame/M_Example.M_Example; a package-only path does not match.

Returns: { asset_path, primary_asset_id, is_valid, primary_asset_type, primary_asset_name }

get_primary_asset_ids_by_type

Read-only

List the Primary Asset Ids the running Asset Manager has registered for one primary asset type: asset_ids entries with type, name and full_id ("Type:Name"), plus count. Only scanned assets appear, so after adding or changing a rule (add_primary_asset_rule) run scan_primary_assets first. List the registered types with get_all_primary_asset_types and the configured rules with get_primary_asset_types; for one asset's id use get_primary_asset_id, and for a bundle of it get_asset_bundle_entry. Read-only and idempotent. success is false, with an empty list, when nothing is found, an unknown type included; an uninitialized Asset Manager is an error.

Parameter Type Required Description
asset_type_name string yes Name of the primary asset type as registered, e.g. "Item" or "Map" (case-insensitive); get_all_primary_asset_types lists them.
filter string no "unloaded_only" (case-insensitive) keeps only assets with no current or pending bundle state (not loaded through the Asset Manager); omitted or any other value lists all.

Returns: { type, name, full_id, asset_type_name, success, asset_ids, count }

get_primary_asset_types

Read-only

Read the PrimaryAssetTypesToScan rules configured in the Asset Manager project settings, read-only: each entry with its type, base_class, has_blueprint_classes, is_editor_only, directories, num_specific_assets and its cook rules (cook_rule, priority, chunk_id, apply_recursively), optionally only the entries of one primary_asset_type. The running Asset Manager is not consulted, so a type only registered by game code is not listed: get_all_primary_asset_types reads the live registry. cook_rule comes back as Unknown, Never, ProductionNeverCook, DevelopmentAlways, DevelopmentAlwaysProductionUnknownCook or Always, each accepted back by set_primary_asset_cook_rule.

Parameter Type Required Description
primary_asset_type string no Optional type name (e.g. "Item", matched without case): list only the rules of that type; a type with no configured rule is an error.

Returns: { types: [{ type, base_class, has_blueprint_classes, is_editor_only, directories: [string], num_specific_assets, cook_rule, priority, chunk_id, apply_recursively }], type_count, primary_asset_type? }

list_plugins

Read-only

List the plugins this editor has discovered, enabled or not, sorted by name: whether each is enabled and mounted, whether it comes from the engine or the project, its version, category and folder. Filters combine (all must match). Read-only. Use get_plugin_status for one plugin's dependencies and modules, and set_plugin_enabled to turn one on or off.

Parameter Type Required Description
enabled boolean no Optional bool: true lists only enabled plugins, false only disabled ones; omitted lists both.
type string no Optional: "project" (plugins the project loads from its own folders), "engine" (the engine's), or "all" (default).
name_filter string no Optional case-insensitive substring of the plugin's name or friendly name.
category string no Optional case-insensitive substring of the plugin's category (e.g. "Editor", "Rendering").
include_hidden boolean no Optional bool (default true): include plugins the Plugins window hides.
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { plugins: [{ name: string, friendly_name: string, enabled: bool, mounted: bool, type: "engine"|"project", plugin_type: "engine"|"enterprise"|"project"|"external"|"mod", version: string, version_number: int, category: string, path: string, descriptor_file: string, can_contain_content: bool, is_beta: bool, is_experimental: bool, hidden: bool }], count: int (entries in this page), total_discovered: int, total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

move_asset

Destructive

Moves an asset to a new folder while keeping its name. GUARDED exactly like rename_asset (it reaches the same FAssetRenameManager through UEditorAssetLibrary::RenameAsset): (1) read-only roots are refused -- and here BOTH ends are checked, source and destination, since a move can also drop an asset INTO the upstream tree; (2) a native CDO hard-reference makes it refuse before the engine can open its blocking modal; (3) the outcome is read back from memory+disk instead of trusting the returned bool, which stays true even when the new package failed to save (the engine only reacts to that when UE source control is connected).

Parameter Type Required Description
asset_path string yes Full asset path to move
new_folder_path string yes Destination folder path (e.g. /Game/NewFolder)
readonly_roots array no Optional array of content roots that must never be written (checked on source AND destination). Absent => the project's Read Only Content Roots. An EXPLICIT [] disables the guard. (Read through mcp_common::ParseReadonlyRoots, so the type hint is what puts it in the catalog.)
check_cdo_references boolean no Optional bool (default true). Scan native CDOs for a hard reference to the asset and refuse instead of letting the engine open a modal.

Returns: { original_asset_path: string, new_folder_path: string, new_asset_path: string, move_success: bool, move_message: string, new_asset_class: string, new_package_name: string, asset_verified: bool, new_file_size_bytes: number?, new_file_size_mb: number?, original_file_exists: bool?, original_asset_class: string, original_package_name: string, new_object_resolves: bool?, new_file_on_disk: bool?, new_file_path: string?, redirector_left: bool?, verification: object?, verification_checks: [object]?, would_block_on_modal: bool?, cdo_referencing_class: string?, cdo_soft_reference_check: string? }

remove_primary_asset_rule

Destructive

Remove every PrimaryAssetTypesToScan entry of one type from the Asset Manager project settings and write DefaultGame.ini; an unknown type is an error. Returns removed_count, type_count_after and saved. The running Asset Manager is not refreshed, so its scanned data for the type remains.

Parameter Type Required Description
primary_asset_type string yes Name of the primary asset type to remove, e.g. "Item".

Returns: { primary_asset_type, removed_count, type_count_after, saved }

rename_asset

Destructive

Renames an asset to a new name in its current directory. GUARDED (both guards are shared with move_asset, and both come from the AssetRenameManager source -- see the comment block on AnyNativeCdoHardReferences): (1) refuses to touch anything under a read-only root (readonly_roots, default: the project's Read Only Content Roots -- the upstream tree is never mutated in place); (2) refuses BEFORE calling the engine when a native class' CDO hard-references the asset, because FAssetRenameManager would open an FMessageDialog there and block the game thread (which kills the MCP session). And it does not trust IAssetTools::RenameAssets' return value: the result is READ BACK (new object resolves + new package on disk + redirector left at the original path), because the engine silently drops packages that failed to save unless UE source control is connected (with plain git it never is).

Parameter Type Required Description
asset_path string yes Full asset path to rename
new_asset_name string yes New name for the asset
readonly_roots array no Optional array of content roots that must never be written. Absent => the project's Read Only Content Roots. An EXPLICIT [] disables the guard. (Read through mcp_common::ParseReadonlyRoots, so the type hint is what puts it in the catalog.)
check_cdo_references boolean no Optional bool (default true). Scan native CDOs for a hard reference to the asset and refuse instead of letting the engine open a modal. Set false to skip the scan (faster, but a modal can then hang the editor).

Returns: { original_asset_path: string, new_asset_name: string, new_asset_path: string, rename_success: bool, rename_message: string, new_asset_class: string, new_package_name: string, asset_verified: bool, new_file_size_bytes: number?, new_file_size_mb: number?, original_file_exists: bool?, original_asset_class: string, original_package_name: string, new_object_resolves: bool?, new_file_on_disk: bool?, new_file_path: string?, redirector_left: bool?, verification: object?, verification_checks: [object]?, would_block_on_modal: bool?, cdo_referencing_class: string?, cdo_soft_reference_check: string? }

run_external_project_script

Destructive

Spawn a SEPARATE headless UnrealEditor-Cmd.exe to run a python script against an EXTERNAL project and capture its stdout. Needed because another project's /Game packages collide with the live project's (they cannot be loaded side by side), so reading data from content outside this project needs an isolated editor. Give it an existing .uproject OR a module_dir (a minimal engine-only .uproject is cloned in place, with any 'disable_plugins' turned off, then deleted); it launches <uproject> -run=pythonscript -script=<script> -unattended -nullrhi -NoLiveCoding -stdout, blocks until exit or timeout, and returns stdout. HEAVY: spawns a full editor process (tens of seconds) and BLOCKS the editor for the duration -- run with confirmation. The engine binary is resolved from THIS editor's install (FPaths::EngineDir); no path is assumed.

Parameter Type Required Description
script string yes Absolute path to the .py file to run (the -script argument).
uproject string no Path to an existing external .uproject to run against (optional; provide this OR module_dir).
module_dir string no Directory of a content folder or project whose Content to load; a temporary engine-only .uproject is cloned here and cleaned up (optional; provide this OR uproject).
disable_plugins array no Optional list of plugin names to disable in the CLONED .uproject (e.g. custom plugins that hang headless startup). Only applies when module_dir is used.
extra_args array no Optional list of extra command-line tokens appended to the launch.
timeout_seconds number no Max seconds to wait before terminating the child (optional, default 300; clamped 30..3600).

Returns: { exe: string, uproject_used: string, cloned: bool, script: string, params: string, launched: bool, exit_code: int, success: bool, timed_out: bool, duration_seconds: number, stdout: string, stdout_length: int, stdout_file: string, cleaned_up: bool, message: string }

scan_primary_assets

Read-only

Synchronously rescan the directories and specific assets of every PrimaryAssetTypesToScan rule (or only primary_asset_type) so the Asset Manager registers their primary assets; rules without paths are skipped. Returns num_assets_found, types_scanned and per-type scanned_types. Run it after add_primary_asset_rule.

Parameter Type Required Description
primary_asset_type string no Configured type name to scan alone, e.g. "Item"; omitted or empty scans every rule, and an unknown name scans nothing (types_scanned=0).

Returns: { type, num_assets_found, num_paths, scanned, types_scanned, scanned_types }

set_primary_asset_cook_rule

Destructive Idempotent

Set the CookRule of an existing PrimaryAssetTypesToScan rule in the Asset Manager project settings, plus ChunkId and bApplyRecursively when given, then write DefaultGame.ini (no undo); a failed write makes success false. An unknown type (add it with add_primary_asset_rule) or cook_rule is an error before any change. Priority is not touched here; add_primary_asset_rule sets it. Nothing is rescanned. Read the rules back with get_primary_asset_types (primary_asset_type); the reply's cook_rule is the short name of the stored rule.

Parameter Type Required Description
primary_asset_type string yes Name of the primary asset type (e.g. "Item").
cook_rule string yes One of "Unknown" / "Never" / "Development" / "DevelopmentAlways" / "Always", case-insensitive; "Development" stores ProductionNeverCook, and the EPrimaryAssetCookRule names (e.g. "AlwaysCook", "DevelopmentAlwaysProductionUnknownCook") are accepted too.
chunk_id integer no Optional chunk ID override for the rule
apply_recursively boolean no Optional flag to apply the rule recursively

Returns: { primary_asset_type, cook_rule, priority, chunk_id, apply_recursively, saved }