Is there any easy way to get a variable by name? Thanks.
There's no provided function, since multiple variables can share the same name.
You can iterate through the list, however:
foreach (GVar variable in GlobalVariables.GetAllVars ()) { if (variable.label == "MyVariable") { // Found it } }
I was afraid of that. Thank you
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
There's no provided function, since multiple variables can share the same name.
You can iterate through the list, however:
I was afraid of that. Thank you