Description
Description
Local variables are currently a storage mechanism specific to function graphs. Due to the nature of how these nodes are interacted with (i.e. targets need to connect to the same explicit local variable node), this can create very unfriendly graphs.
Implementation ideas
Treat local variables much like script-level variables. They are defined in the component panel in a new subsection called Local Variables, and users create Get and Set nodes for them.
We should see whether an upgrade path can be realized for moving the LocalVariable
and AssignLocalVariable
node implementations to LocalVariableGet
and LocalVariableSet
nodes or whether this will need to require a user step for migration. In the case of the latter, old nodes would be deprecated, they would get scored low on the match list or even removed from the search entirely and replaced by the new implementation of using the component panel to drag/drop the getter/setter nodes.