Graphics¶
2 tools for decal actors.
Back to the index.
get_decal_info¶
Read-only
Read the decal settings of one ADecalActor in the editor world (not PIE), found by its editor label, without changing anything: DecalSize half-extents in cm (local space, before actor scale), sort order, fade screen size, fade-out and fade-in delays and durations in seconds, destroy-owner-after-fade, DecalColor as r, g, b, a and the decal material's path (empty when none). Use it to check a decal after spawn_decal_actor, or after changing its component with set_properties (object_path "<decal actor path>.DecalComponent", e.g. properties {"SortOrder":2}); for the actor's location and rotation use the actor transform tools. A label with no decal actor (the match is on the label, not the object name), or no editor world, is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_label |
string | yes | Editor label of the ADecalActor, e.g. "Decal_Blood_01", as spawn_decal_actor set it or the Outliner shows it (case-insensitive, first match). |
Returns: { actor_label: string, actor_name: string, decal_size_x: float, decal_size_y: float, decal_size_z: float, sort_order: int, fade_screen_size: float, fade_start_delay: float, fade_duration: float, fade_in_start_delay: float, fade_in_duration: float, destroy_owner_after_fade: bool, r: float, g: float, b: float, a: float, decal_material: string }
spawn_decal_actor¶
Destructive Idempotent
Spawn a DecalActor labelled actor_label in the editor world with its DecalSize half-extent and optional material in one call; spawn_actor has no decal type. Idempotent by label: an existing one is REUSED, moved to location/rotation (origin/zero when omitted) and DecalSize reset (default 128,256,256). decal_size must be [x, y, z]; a material_path that does not load is an error and nothing is spawned or moved. No undo; not saved (save_level).
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_label |
string | yes | Label for the spawned (or re-used) ADecalActor. |
location |
string | no | Optional [x, y, z] world location (default 0,0,0). |
rotation |
array | no | Optional [pitch, yaw, roll] world rotation. |
decal_size |
string | no | Optional [x, y, z] half-extent for DecalSize (default 128,256,256). |
material_path |
string | no | Optional content path of a UMaterialInterface to assign to the decal; a path that does not load is an error and nothing is spawned or changed. |
Returns: { actor_label: string, actor_name: string, reused: bool, decal_size_x: float, decal_size_y: float, decal_size_z: float, decal_material: string }