add_anim_graph_parameter
Add a typed value parameter to an O3DE anim graph, setting its default, optional range, description, and group for animation logic.
Instructions
Add a value parameter to an anim graph.
Returns the parameter object as get_anim_graph emits it. The gem
checks each value against the type; min and max are only valid
for ranged types (Float, Int, Vector2/3/4, Color, Rotation).
Args:
anim_graph_id: Graph id (number or digit string).
name: Parameter name.
parameter_type: Float (a FloatSlider), FloatSpinner, Int
(an IntSlider), IntSpinner, Bool, String, Tag,
Vector2, Vector3, Vector3Gizmo, Vector4, Color,
Rotation, or the full class name.
default: Default value: a number, bool, string, or a list of numbers
for vector, color and rotation types.
min: Range minimum (ranged types only).
max: Range maximum (ranged types only).
description: Optional description.
group: Group to put the parameter in; created when missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| min | No | ||
| name | Yes | ||
| group | No | ||
| default | No | ||
| description | No | ||
| anim_graph_id | Yes | ||
| parameter_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |