Documentation¶
3 tools for documentation generated for an asset, a Blueprint or the whole project.
Back to the index.
create_asset_documentation¶
Read-only
Builds a documentation record of one asset from the Asset Registry, without loading it: name, class, package and object path, .uasset size and timestamp, a coarse category and usage line chosen by class hierarchy, so subclasses count (3D Model for static meshes, Material for materials and material instances, Texture for every texture, Blueprint for every Blueprint kind, Audio for sound waves, cues and other sounds; any other class is Other), and its direct package dependencies and referencers, 100 of each at most with truncation flags. Read-only despite its name: nothing is loaded, written or saved, and the record comes back in the reply only. An asset the registry does not know, or no editor world, is an error. For complete edge lists use get_asset_dependencies and get_asset_referencers (get_asset_dependencies_recursive beyond depth 1); for every Blueprint at once, generate_blueprint_docs; for project-wide counts, create_project_overview.
| Parameter | Type | Required | Description |
|---|---|---|---|
asset_name |
string | yes | Package path ("/Game/Props/SM_Chair") or object path ("/Game/Props/SM_Chair.SM_Chair") of the asset; a bare asset name is not resolved (find_assets_by_name turns a name into a path). |
Returns: { asset_documentation: { asset_name, asset_path, asset_class, asset_type, package_name, object_path, file_name, file_size: int (bytes, 0 if file_exists=false), last_modified: string, file_exists: bool, asset_category, usage, dependencies: [string] (package names, depth-1, capped at 100), dependencies_truncated: bool, dependents: [string] (referencers, depth-1, capped at 100), dependents_truncated: bool }, generation_date: string, project_name: string }
create_project_overview¶
Read-only
Summarize the project in one read that writes nothing, neither a file nor an asset: project name, engine version and platform; /Game asset counts per class from the Asset Registry; the Blueprint total split into normal Blueprints and macro libraries, read from the registry's BlueprintType tag without loading any Blueprint; the name, world_type, net mode, actor count, level count and actors per class of one world, the PIE world while a play session runs and the editor world otherwise; and the totals of materials (any UMaterialInterface), Texture2D and sound assets. Without an editor world it is an error. Project metadata alone: get_project_info; one asset: create_asset_documentation; every Blueprint in detail: generate_blueprint_docs; the actors themselves: get_actors_in_level.
No parameters.
Returns: { project_info: { project_name, engine_version, platform, generation_date, is_editor }, asset_types: [{ asset_type, count }], blueprint_info: { total_blueprints, normal_blueprints, macro_blueprints }, world_info: { world_name, world_type, net_mode, actor_count, level_count }, actor_types: [{ actor_type, count }], material_info: { total_materials }, texture_info: { total_textures }, audio_info: { total_audio_assets }, statistics: { total_assets, total_blueprints, total_materials, total_textures, total_audio_assets, total_actors } }
generate_blueprint_docs¶
Read-only
Documents every Blueprint asset under /Game in one reply, subclasses included (Widget, Anim and other Blueprints): per Blueprint its name, package path, class, parent class, type, compile state, the components its own Components panel adds, the names of its function and event graphs, and its own variables with their pin category. Read-only despite its name: it loads every Blueprint to read it, but writes and saves nothing, and the result comes back in the reply only, never as a file. On a big project it can take long and return a very large reply; plugin and engine content are not included, and an editor world is required. For one Blueprint use get_blueprint_info (get_blueprint_components for its real component tree) or export_blueprint_data; for one asset of any kind, create_asset_documentation; for project-wide counts without loading, create_project_overview.
No parameters.
Returns: { blueprint_documentation: [{ blueprint_name, blueprint_path, blueprint_class, parent_class, blueprint_type, compilation_status, components: [{ component_name, component_class, parent_component, is_editable }], functions: [string], variables: [{name, type}] }], total_blueprints: int, generation_date: string, project_name: string } -- blueprint_type is Normal, Const, MacroLibrary, Interface, LevelScript or FunctionLibrary; compilation_status is UpToDate, UpToDateWithWarnings, Error, NeedsCompilation (changed since its last compile), BeingCreated or Unknown; components are the Blueprint's own construction-script nodes (its Components panel), each named by its variable name with the component it attaches to (empty for a root), and leave out the components it inherits