Universal JSON Prefab Format: Bridge Between Design and Code

Analyze once, deploy everywhere with our standardized format

JSON Prefab Format Visualization

Key Features

Component Recognition

Intelligent detection of UI components and their properties

Hierarchy Generation

Automatic creation of nested component structures

Style Extraction

Capture of colors, fonts, and visual properties

Multi-Engine Support

Compatible with Cocos Creator, Unity, Unreal, and more

Format Documentation

Our JSON prefab format provides a standardized way to describe UI components, their properties, and relationships. This format serves as a bridge between design tools and game engines, enabling seamless conversion.

Basic Structure

{
  "name": "LoginPanel",
  "type": "Panel",
  "properties": {
    "width": 800,
    "height": 600,
    "backgroundColor": "#1A1A1A",
    "borderRadius": 8
  },
  "children": [
    {
      "name": "TitleText",
      "type": "Text",
      "properties": {
        "text": "Login",
        "fontSize": 24,
        "color": "#FFFFFF",
        "alignment": "center"
      }
    },
    {
      "name": "UsernameInput",
      "type": "Input",
      "properties": {
        "placeholder": "Username",
        "width": 300,
        "height": 40
      }
    }
  ]
}

Format Features

  • Component Types: Predefined types for common UI elements
  • Property System: Flexible property definition for any component
  • Nesting Support: Hierarchical structure for complex UIs
  • Reference System: Reference other components for dynamic relationships
  • Extension Points: Custom properties for engine-specific features

Supported Game Engines

Cocos Creator Logo

Cocos Creator

Full support for 2.x and 3.x versions

Unity Logo

Unity

Compatible with UGUI and UI Toolkit

Unreal Engine Logo

Unreal Engine

Support for UMG UI system

Godot Logo

Godot

Compatible with built-in UI system

Integration Steps

1

Analyze UI Design

Use our UI Analysis Tool to generate JSON prefab data from your design

2

Review & Customize

Review the generated JSON and customize as needed

3

Import to Engine

Use our engine-specific plugins to import the JSON into your game engine

4

Fine-tune & Deploy

Make final adjustments in your engine and deploy your game

Ready to streamline your UI implementation?

Start using our JSON prefab format today and save hours of development time