Set variable from other udon behaviour

Hey guys, can i set like a variable in udon behaviour A from udon behaviour B? for example i wanna adjust the score on behaviour A by triggering it from udon behaviour B. Thanks guys

Assign Udon Behaviour A to a variable, then use the UdonBehaviour.SetProgramVariable() Node / Method and supply it with a variable name and value.

Udon Graph: image
U#: image

Wow thanks for the help mate. It works

1 Like