Skip to main content

How it works

A short look under the hood, for the curious and for technical leads deciding whether ZipTie is safe to add to a project.

Nothing is added to your graphs​

A tie is not a node. ZipTie never adds, removes or rewires anything in a graph. Compiling, cooking, packaging and running your game are exactly the same with or without it.

Where ties are stored​

Ties are saved as editor-only metadata of the asset (the same mechanism the engine uses for things like tooltips on properties), as a small JSON document per graph:

  • Bundle id, kind (Zip Tie or Zip), position(s) and rotation(s).
  • The wires it holds, each identified by its two endpoints (see Supported graphs).

Metadata is stripped from cooked builds: nothing ships with your game.

ZipTie writes the metadata whenever a tie changes, and again right before the asset is saved. The asset is marked as modified, so you save ties like any other change.

Undo​

Every tie operation goes through the editor's regular transaction system: it appears in Edit → Undo History and is undone with Ctrl+Z, together with the node changes it belongs to (for example deleting nodes and ties at once).

Clean-up​

When nodes or wires change, ZipTie removes from its ties the wires that no longer exist, and removes ties left with fewer than two wires. This happens inside the same undo step as your change, so undoing it restores the ties.

Drawing​

Each graph editor decides how to draw its wires (the engine, the graph type's own style, or a wire plugin such as Electronic Nodes). ZipTie wraps that drawing instead of replacing it:

  • Wires that are not tied are drawn exactly as before.
  • Tied wires are drawn piece by piece through their ties, with the same style.
  • Ties, Zip cables and badges are drawn on the wire layer: above wires, below nodes.

Because ZipTie hooks each graph panel individually, it works in graph editors whose wire drawing cannot be customized otherwise.

Performance​

The extra work is done only for graphs that contain ties. Graphs without ties pay nothing beyond a quick check per paint. Turning ZipTie off (Ctrl+Alt+Z) restores the engine's own drawing entirely.