Skip to content

Getting Started

This page walks through a simple train-based cargo loop.

1. Open The Cargo Network Window

In Unity, open:

Tools > Pixit Games > Cargo Network Pro > Cargo Network Window

Use this window to place node prefabs, create routes from selected nodes, and build rail, sea, or air route visuals.

2. Place Nodes

Start with three placed node prefabs:

  • MinePrefab
  • FactoryPrefab
  • CityPrefab

For rail routes, place nodes on a 4-meter grid.

Tip

For best rail generation results, place all rail nodes on a 4m grid. X and Z positions should be multiples of 4.

3. Configure A Mine

Use a mine when a node should produce one basic resource without stages.

Recommended setup:

  • Operation Mode: Production
  • Initial Request: empty
  • Stages: empty
  • Starting Productions: one production rule, such as Ore

4. Configure A Factory

Use a factory when a node should unlock production after receiving cargo.

Example:

  • Initial Request: Ore x20
  • Stage: Small Factory
  • Stage request: optional next inputs, such as Wood x20
  • Stage production unlock: Tools

When the initial request is completed, the factory enters the first stage and unlocks its configured production rules.

5. Configure A Town

Use a town when it should start as a requesting node and grow later.

Example:

  • Leave Starting Productions empty.
  • Set Initial Request to Wood x50.
  • Add a stage called Small Town.
  • Add new requests to the stage, such as Tools.
  • Add productions to unlock, such as Furniture.

6. Create A Route

  1. Select the placed nodes in route order.
  2. Open the Cargo Network window.
  3. Go to the RailRoad Cargo Route tab.
  4. Assign rail prefabs if needed.
  5. Press Create Route From Selected Nodes.
  6. Select the route and build smart rail visuals.

7. Add A Vehicle

Add CargoTransportAgent to a train object and assign the route.

Key fields:

  • Route: the route to follow
  • Move Speed: vehicle speed
  • Stop Work Time: how long the vehicle waits at each stop
  • Inventory Capacity: total cargo capacity
  • Cargo Visual Mode: how loaded cargo visuals are displayed

For instant turnaround at endpoints, set Stop Work Time to 0.