There are six varieties of variables in Unity’s visible scripting. I am not 100% clear on the distinction between Graph and Stream Variables.
This is essentially the most intensive description of them that I’ve seen:
https://docs.unity3d.com/Packages/com.unity.visualscripting@1.7/handbook/vs-variables.html
At present I take advantage of Object Variables if:
- The info in them is tied to a selected Object
- I would like the info to be persistent, so I can entry it later.
I take advantage of Graph Variables if:
- I do not want the variable’s knowledge to persist.
I take advantage of Stream variables if I say have a loop, and must increment some numbers within the loop.
I might like to make use of Stream variables as usually as attainable, as I assume they’ve a decrease reminiscence footprint (maybe not true?). The best way I give it some thought is: a Graph Variable are native to a graph, and a Stream variable is native to a smaller subsection of the graph (as outlined within the screenshot). Is that the proper approach to consider Stream variables?