Skip to main content

asset.preview

Overview

  • TEST-PLACE a catalog asset (by ObjectPath) to visually confirm it is the right asset. This is a TRANSIENT PREVIEW, NOT a permanent placement: the result is NOT saved and disappears on save/load, level travel, or restart. For permanent, saveable furniture use the build-mode / DT-based path instead. StaticMesh/SkeletalMesh spawn a plain preview actor; NiagaraSystem plays FX; SoundBase plays a one-shot sound. Placement: if screen pixels (x,y) are given, line-trace to the surface under them; otherwise place ~2m in front of the player. Get the path from asset.search first.

Metadata

FieldValue
DisplayPreview Catalog Asset (Test Placement)
Categoryasset
AccessScriptCheat
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
pathstringyes—Full catalog asset ObjectPath (e.g. '/Game/BG/.../SM_x.SM_x').
xfloatno—Screen X pixel (viewport-local). Optional — omit to place in front of player.
yfloatno—Screen Y pixel (viewport-local). Optional.
yawfloatno0Yaw rotation in degrees (default 0).

Usage

await inzoi.cli.execute('asset.preview', {
path: '',
x: 0.0, // optional
y: 0.0, // optional
yaw: 0, // optional
});