Mock Magic · Use cases

What you can do with Mock Magic

Everyday jobs Mock Magic handles in Unity: realistic UI content, chart and dashboard data, live streams, reproducible tests, exports and coding-assistant workflows.

Fill Unity UI with realistic test data

Rows named Test 1 and Test 2 hide the layout bugs that real data exposes. Generate believable names, e-mail addresses, prices and dates in the Editor or at runtime, including records with missing fields.

Test charts and dashboards with patterned data

A chart that has only seen tidy numbers is untested. Generate labeled series in 15 shapes, with noise, negative ranges and up to 10 series at once, preview them in the Editor, then export them or feed them to a chart.

Simulate live data in Unity without a backend

Build the live parts of a UI before the server exists. Mock Magic sends labeled values that continue their pattern to your listeners on a schedule you choose, in Edit Mode or Play Mode, so bursts, gaps and pauses show up early.

Reproducible fake data for Unity tests

Random test data only helps when a failure can be repeated. Seed Mock Magic, pin the date it counts from, keep IDs predictable, and return to fresh random output when the test ends.

Simulate sensor telemetry for a Unity digital twin

Build the twin before the hardware talks to it. Stream live readings per sensor inside Unity with jitter, drift, cycles, faults, irregular timing and batched uploads, and draw histories that the live values continue.

Fake credit card numbers for testing checkout forms

Test a card form's input mask, validation and layout with Luhn-valid numbers that no bank issued, generated in the Editor or in code, and use your payment provider's own test cards for anything that reaches the gateway.

Export fake data as CSV, JSON or C# arrays

Mock Magic's Export panel and the MockExport class write generated values and series as text, CSV, JSON or C# arrays. Exact samples of each format, how numbers are written and where each format fits.

Mock leaderboards, chat logs and shop reviews

Fill leaderboards, chat panels, shop pages and social feeds with generated usernames, scores, messages, prices, ratings and reviews, including the ties, long names and empty states that break layouts.

Templates and custom data types

Mock.Format fills masks such as ORD-#####, Mock.Parse fills {{token}} templates from 58 built-in tokens, and RegisterToken and RegisterGenerator add your own, from loot names to typed values or other locales through Bogus.

Generate test data with a coding assistant

Six Markdown skills in Mock Magic's AI/Skills folder show Claude Code, Codex and other coding assistants how to write a few lines of generator code against the real API instead of pasting hand-typed fake data into your project.

Generate names and text at runtime

What Mock Magic's name, username, e-mail, place, lorem ipsum, review and hacker phrase generators return, how large their pools are, and when a dedicated name generator is the better choice.

Start with the job in front of you

Most screens and systems get built before their real data exists. The list view waits for a server, the chart waits for analytics, the dashboard waits for devices, and the test waits for someone to type fixtures. Mock Magic fills that gap inside Unity with data that looks and behaves like the real thing.

Try the generators in your browser

Two free browser tools use Mock Magic’s own data sets, formulas and export formats, with nothing to install. The fake data generator lists all 57 value types, and the chart data generator shapes series in the 15 patterns. Inside Unity, the same generators also run from code and stream live data.

What Mock Magic is

Mock Magic is a free Unity tool with full source code. Open Tools > Mock Magic > Generator to pick from 57 data types, shape chart series in 15 patterns or run a live stream, then copy or export the result. The same generators are a static C# API that works in Edit Mode, Play Mode and player builds, and Stable mode or Mock.Seed makes every result repeatable.

It supports Unity 2022.3 to 6.7. If you own Chart Guru, Mock Magic is already included and feeds its charts through the Mock Chart Data Source component.

Mock Magic

Realistic fake data for Unity, from one value to a live stream.