ms_add_variable
Add a typed graph variable to the current MetaSounds builder so Get/Set Variable nodes can store and share state within a MetaSound graph.
Instructions
Add a graph variable to the current MetaSounds builder (UE 5.7+).
Graph variables store state within a MetaSound graph, readable and writable by Get/Set Variable nodes.
Args: name: Variable name (must be unique within the graph) type: Data type (Float, Int32, Bool, Trigger, Audio, Time, String) default_value: Optional default value as string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| default_value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |