Blocky


A "level complete" block, plus BlockyEvents.LevelCompleted for your own C#. ... Your own blocks ... An Editor window, Tools › Blocky › Program Editor, for editing programs outside Play ...


by revkae


Price History +

Let players program your game with drag-and-drop blocks. Blocky is visual block programming that runs inside your Unity game: players open an in-game workspace, snap blocks together to program the objects in your scene, and press Play. Every block lights up while it runs.

Use it to build coding games, classroom and STEM apps, programming puzzles, or a "program your robot" mechanic. It works the same in Play mode and in builds, and it already runs in a public WebGL app used in schools.

Highlights

  • 87 blocks in 10 categories: Events, Motion, Looks, Sound, Control, Sensing, Operators, Variables, Lists and My Blocks.
  • A complete in-game workspace built with UI Toolkit, with a palette, a run bar, undo and redo.
  • Runs live on a small virtual machine, with Pause, Step back and Step forward.
  • A 7-level course included as a sample, ready to play or to use as a template.
  • Your own C# blocks, written for you by the New Block wizard.
  • URP and the Built-in Render Pipeline, Unity 6.3 LTS and later, full C# source.

Program the scene

  • Click an object to open its program. Tab, or the Blocks button, opens and closes the workspace.
  • Every white input takes a value block, so "move forward (pick random 1 to 10)" just works.
  • Variables you can watch live, lists, clones, messages, say and think bubbles, and generated musical notes (no audio files needed).

Made for learning

  • A run bar with Play, Stop, Reset, Pause, Step back, Step forward and 1x to 4x speed.
  • Free mode, an open table you can pan and zoom, and Simple mode, one numbered column where every block joins the script.
  • Plain-language advice when a script won't do anything, with a badge on the block.
  • Undo and redo, box select, group drag, and delete by dropping blocks back on the palette.
  • Three themes (Light, Dark and High contrast) and two languages (English and Türkçe). A new language is one JSON file.

Puzzles and lessons

  • Toolboxes choose which blocks a level offers and how many a program may use ("Blocks 5 / 5").
  • A "level complete" block, plus BlockyEvents.LevelCompleted for your own C#.
  • Included: the Blocky Course sample. Six short lessons (events and motion, loops, keys and choices, variables, messages and clones, your own blocks), each with a challenge, a hint and an answer, then a free-play island with 31 programmed objects. Import it from the Package Manager.

Your own blocks

  • My Blocks: players define their own blocks, with inputs and recursion.
  • New C# blocks: Tools › Blocky › New Block… writes the block asset, the C# class that runs it and its words in every language. There is nothing to register.

For developers

  • Programs save themselves on every edit and run again the next time the game starts, or keep them in your own save data.
  • A C# API for the run bar (Playback.Play / Stop / ResetWorld), events (BlockyEvents), runners, and hosting the workspace inside your own game flow.
  • An Editor window, Tools › Blocky › Program Editor, for editing programs outside Play mode.
  • Installs as a Unity package, with full source in the Blocky.* namespaces, a 12-page manual and 547 EditMode tests.

Requirements

  • Unity 6.3 LTS or newer.
  • The Universal Render Pipeline or the Built-in Render Pipeline. The Blocky Course sample needs URP.
  • The Input System package, with Active Input Handling set to "Input System Package (New)" or "Both". Newtonsoft JSON installs automatically.
  • Made for mouse and keyboard; touch has not been tested yet.

Blocky is designed, directed and play-tested by its developer, who also uses it in production in a public WebGL app for schools. AI coding assistance (Claude, by Anthropic) helped with the code, the tests and the manual, and was used to make the trailer, screenshots and key images from real recordings of Blocky running in Unity.

The Blocky Course sample uses Kenney's Blocky Characters, Platformer Kit and three sound packs under CC0 1.0; see the Third-Party Notices.txt file in the package for details.