spawn_text_render_actor
Spawn a TextRenderActor with optional text, color, and world size into the active PIE, game, or editor world—verified by read-back for packaged builds.
Instructions
Spawns a TextRenderActor into the active world (a running PIE/game world if one exists, otherwise the editor world) and configures its text. Sets the UTextRenderComponent's text / color / world size if given (world_size read back to verify). Runtime/cooked-build safe: resolves the world via GEngine's world contexts, not GEditor, so it also works in packaged builds.
Returns: { actor_name: string, actor_internal_name: string, actor_class: string, has_component: bool, text_set: bool, color_set: bool, size_set: bool, world_size: number, spawned: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Optional world size for the text render component | |
| text | No | Optional text to assign to the text render component | |
| color | No | Optional [r, g, b] 0..255 color (alpha forced opaque) | |
| location | No | Optional [x, y, z] world location | |
| rotation | No | PREFERRED: the OBJECT {"roll":R,"pitch":P,"yaw":Y} (any subset, absent axes are 0). The ARRAY form below is [pitch, yaw, roll] -- its index 2 is ROLL, NOT yaw, which once put a PlayerStart on its side. Optional [pitch, yaw, roll] world rotation |