rename_collection_param
Rename a scalar or vector parameter in a Material Parameter Collection asset, preserving its ID and saving the change; rejects duplicate names.
Instructions
Rename one parameter of a Material Parameter Collection asset, keeping its Id, and save it. Refuses when new_name is already used in the same array, and errors when param_name is not in the array param_type selects (default scalar).
Returns: { collection_path: string, param_name: string, new_name: string, param_type: string, renamed: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New parameter name, must not collide with another | |
| param_name | Yes | Current parameter name | |
| param_type | No | Which array to search: "scalar" or "vector", any case; omitted or anything else means scalar | |
| collection_path | Yes | Full /Game path to the MPC asset |