add_statetree_condition
Add a condition to a StateTree asset's state enter conditions or transitions. Specify condition class, target, operand, and properties.
Instructions
Add a condition to a state's enter conditions or a transition's conditions.
Args: asset_path: Content path to the StateTree asset condition_class: Condition struct name (e.g. "StateTreeCompareIntCondition") state: State index path state_name: State name state_guid: State GUID target: "enter_conditions" or "transition" transition_index: Required when target="transition" operand: "And" or "Or" (how to combine with previous conditions) properties: JSON object for condition properties instance_properties: JSON object for condition instance data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| target | No | enter_conditions | |
| operand | No | And | |
| asset_path | Yes | ||
| properties | No | ||
| state_guid | No | ||
| state_name | No | ||
| condition_class | Yes | ||
| transition_index | No | ||
| instance_properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |