add_chooser_column_to_table
Append a new column to a UChooserTable asset in one undo step, compile and save it. Handles Randomize columns specially, ensuring at most one exists.
Instructions
Append a column of column_type, its input left unbound, to a UChooserTable asset as one undo step, then compile and save the table; success is false, with save_error, when the save fails. Each call appends a new column, even of a type the table already has, except Randomize: a table holds at most one, so an existing Randomize column is returned with already_existed=true and nothing changes. The new column gets one cell, its DefaultRowValue, per row already in the table, so columns and rows stay in step whichever is added first. Besides the types listed under column_type it accepts OutputFloat, OutputBool, OutputName, OutputEnum, ObjectClass, Name, MultiEnum and Randomize.
Returns: { table_path: string, column_index: int, column_name: string, column_type: string, already_existed: bool, row_count?: int, saved?: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_path | Yes | Long package path of an existing UChooserTable. | |
| column_name | Yes | Label echoed back in the reply only; it is not stored on the column. | |
| column_type | Yes | Column struct to append: "FloatRange", "Bool", "Enum", "Object", or "OutputObject". |