asset kit
1 tools. Generated from the plugin source; do not edit by hand.
Tools
Legend. risk 0 = read-only, 1 = harmless editor op, 2 = modifies asset, 3 = deletes/replaces asset, 4 = project/config/build op, 5 = potentially destructive (calls above
MaxAutoRiskneed"_confirm": true). mutates = runs in a transaction (edit.undo reverts). requires PIE / requires world = refused without a PIE session / an open level. requires plugin = unavailable while the plugin is disabled. dryRun = honours thedryRunargument. smoke = covered byedit.self_test.
asset.preview (risk 0, smoke)
Thumbnail of any asset that has a thumbnail renderer (materials, meshes, textures, Blueprints, widgets, Niagara systems, ...) returned as an image.
| Argument | Type | Description |
|---|---|---|
asset | string | required. Asset (object path, package path or unique name). |
size | integer | Thumbnail edge in pixels (32-1024). Default 256. |
format | string | png or jpg. Default TEXT("png"). |
Returns: width, height, savedTo, imageBase64, imageMimeType.