Auto Register Value Inputs as Graph Variables

nrvllrgrs 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 1

When creating a Flow Macro, it would be useful to have a checkbox that would automatically create that Value Input as a Graph Variable. That would prevent giant webs of Value Inputs spanning the graph.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

This is an interesting idea, and I think the easiest way of doing it is to provide a unit that fetches all graph inputs and assigns them to a given scope (e.g. flow or graph). 

This way, existing super units don't have a breaking behaviour change and super units with multiple control inputs can specify if zero, one or multiple of them should to a pre-emptive fetch.

A longer term solution we're investigating with Andy is to give a flow graph a runtime type like "Function", which would make it behave like a standard function call (one control input, one control output, zero-n value inputs, zero-one value output). In this case, input values would be fetched and cached on input.