Build your logic once.
Run it everywhere.

LogicBlock 2 turns instruction and condition lists into reusable assets. Put your logic in a Block, pass in values like a function call, and run it from any Event.

$12.50$25.0050% off
Requires Visual Script Typed parameters Example scenes included
The LogicBlock icon branching into Instruction, Parameter and Condition icons

The copy-paste problem

Stop copying instructions.
Start reusing them.

The same few instructions end up in Event after Event. When something changes, you hunt down every copy. LogicBlock 2 keeps that logic in one asset, so a single change updates every place that uses it.

An Instruction Block called Deal Damage, run from two different Events

Reusable logic

Build once.
Run anywhere.

Put instructions in a Block and run it from any Event, or from another Block. Change it once and every use updates.

  • Run it from any Event, or from another Block
  • Wait for it to finish, or let it run on its own
  • Set the Source and Target for each call

Three assets

One Block
for every job.

Pick the asset that fits. Each one has its own note for documenting what it does.

Instruction Block

One instruction list

A single action you can run from anywhere, like Deal Damage, Open Door or Spawn Loot.

Instruction Block called Open Door

Condition Block

One condition list

A reusable check where all must pass, or any can pass, like Can Attack?, Is Night? or Has Key?

Condition Block called Can Attack?

LogicBlock

Many named lists

All the logic for one system in one asset, for example every list an enemy uses.

LogicBlock called Enemy AI with Patrol, Chase and Can See Player? lists

Create › Visual Script › LogicBlock

Parameters

Pass values
like a function.

Give a Block typed parameters. Each Run Block sets its own values. Anything you leave alone follows the Block's default.

  • Every parameter has a default value
  • Changed values are marked like prefab overrides
  • Right-click › Revert to Block Default
  • Calls stay in sync when you rename, retype or reorder
Run Block with Amount, Knockback and Hit Sound parameters, Amount overridden
LogicBlock Enemy AI with named lists, and Run Block picking the Chase list

LogicBlock

Every list
in one asset.

Keep all the logic for one system together. Name each list, give it a note and icon, then pick it from Run Block or Check Block.

  • Add List..., Rename... and Edit Note...
  • A list's note icon shows in the list dropdown
  • Lists are drawn when you expand them, so large LogicBlocks open fast

Run, check, stop

Same Block.
Many at once.

Every call runs on its own, so one Block can run on many objects at the same time. Blocks can also call other Blocks.

Run Block, Check Block, Stop Block and Is Block Running
One LogicBlock running separately on twelve enemies
Separate runs

The same Block can run on many objects at once.

Pooled copies

After the first few calls, running a Block makes no new copies.

Stop by Source

Stop the runs one Source started, or all of them.

Is Block Running

Skip a Run Block while the same Block is still running.

Any type

Every type.
Ready to use.

LogicBlock 2 makes a parameter for every value type in your project. Your own types and third-party modules just work, with no extra code.

Visual Script, your scripts and third-party modules feeding the Add Parameter list

Workflow

Turn instructions
into a Block.

Right-click an Event and choose Move Instructions to Instruction Block. The instructions move into a new Block and one Run Block takes their place.

Before and after moving an Event's instructions into a new Instruction Block

Examples

Four scenes.
Press Play.

Each scene has a note that explains what to do. Select a Block in the Blocks folder to see its parameters and lists.

1

Run Block

Three cubes share one Instruction Block.

Pop
2

Parameters

One Block called with its own Color and Intensity each time.

Set Lamp
3

Check Block

A Condition Block used inside If conditions.

Is Lamp On
4

LogicBlock Lists

Red, Blue, Pulse and Reset lists, plus Stop Block and Is Block Running.

Lamp Show

Stop copying.
Start building.

Turn the instructions you keep repeating into one Block. Run it from any Event, pass in what changes, and fix it in one place.

New release discount: $12.50 $25.00, for a limited time.