Unity Plugin (UP) & API
Filter [Colour Coding]
Machinations uses a colour Filter to set rules for how Resources flow.
Filters apply to individual Elements and Structures, not globally, per diagram.
This function can be activated in the Resource Connection’s Properties menu. A Resource Connection for which the Filter has been activated, will only transfer Resources whose colour matches the filter’s. Select the filter colour in the dropdown to its right (see above).
In structures that use Filter:
The colour set for each Source & Drain will determine the type/colour of Resource they produce/ consume.
Resource Connections use colour to determine which Resources they transfer.
State Connections will respond to Resources based on their colour.
You can set the colour of the Resource in the
Properties > Functional > Resources for each Node.
In th example below, we have showcased the same diagram in 3 states:
- Not Colour Coded
- Colour Coded: the Drain pulls through both Resource Connections,. The rule of how Resources flow towards the Drain is being set through the Filter colour.
- Colour Coded with flow interruption: Notice how when we change the type of Resource one of the Connections may accept, the flow changes and the Blue Resources are being stacked in the Pool.
You can use colour to emphasise or to distinguish different elements on your diagrams, without this affecting the flow of Resources.
🔧 Watch the gif below for such an example. On the same diagram example used before, with Colour Coding active, we change the colour of the Resource Connections on the top branch. Notice this type of change has no effect on the Resource flow.