Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

45.3 KB
Raw Blame
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`builtin FieldMeta (RC9-1 equivalence gate) > matches the golden snapshot of every builtin with declared field metadata 1`] = `
{
  "Billboard": {
    "enabled": {
      "tooltip": "Off: the mesh keeps the entity's own rotation.",
    },
    "mode": {
      "enum": [
        {
          "label": "ViewPlane",
          "value": 0,
        },
        {
          "label": "Upright",
          "value": 1,
        },
      ],
      "tooltip": "View plane lies flat in the view, like a particle. Upright turns about world up only, so it stays standing as the camera looks down.",
    },
  },
  "BitmapText": {
    "align": {
      "enum": [
        {
          "label": "Left",
          "value": 0,
        },
        {
          "label": "Center",
          "value": 1,
        },
        {
          "label": "Right",
          "value": 2,
        },
      ],
    },
    "fontSize": {
      "min": 1,
    },
    "layer": {
      "step": 1,
    },
    "parallax": {
      "advanced": true,
      "tooltip": "Parallax scroll factor (1 = with world, <1 = slower, 0 = locked to camera).",
    },
  },
  "Camera": {
    "aspectRatio": {
      "advanced": true,
    },
    "clearFlags": {
      "flags": [
        {
          "label": "Color",
          "value": 1,
        },
        {
          "label": "Depth",
          "value": 2,
        },
      ],
      "tooltip": "Which buffers to clear before rendering this camera.",
    },
    "cullingMask": {
      "bitmask": {
        "source": "sortingLayers",
      },
      "tooltip": "Which sorting layers this camera renders.",
    },
    "farPlane": {
      "advanced": true,
      "min": 0,
    },
    "fov": {
      "max": 179,
      "min": 1,
      "shownWhen": {
        "field": "projectionType",
        "values": [
          0,
        ],
      },
      "unit": "°",
    },
    "nearPlane": {
      "advanced": true,
      "min": 0,
    },
    "orthoSize": {
      "min": 0,
      "shownWhen": {
        "field": "projectionType",
        "values": [
          1,
        ],
      },
      "tooltip": "Half the visible height in world units (Orthographic).",
    },
    "pixelPerfect": {
      "advanced": true,
      "shownWhen": {
        "field": "projectionType",
        "values": [
          1,
        ],
      },
      "tooltip": "Snap the camera to the pixel grid for crisp pixel-art (Orthographic).",
    },
    "priority": {
      "advanced": true,
      "step": 1,
    },
    "projectionType": {
      "enum": [
        {
          "label": "Perspective",
          "value": 0,
        },
        {
          "label": "Orthographic",
          "value": 1,
        },
      ],
      "tooltip": "Orthographic (2D) or Perspective projection.",
    },
    "renderTarget": {
      "advanced": true,
      "tooltip": "Render into a RenderTexture instead of the screen (0 = screen). Set at run time.",
    },
    "showFrustum": {
      "advanced": true,
      "tooltip": "Draw this camera's whole view volume in the editor, not just what it frames on the content plane.",
    },
  },
  "Canvas": {
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
      "tooltip": "Sorting layer this UI belongs to — cameras cull by it.",
    },
    "matchWidthOrHeight": {
      "max": 1,
      "min": 0,
      "slider": true,
      "tooltip": "0 matches width, 1 matches height (Match mode only).",
    },
    "pixelsPerUnit": {
      "min": 1,
      "tooltip": "World pixels per physics meter (Box2D + tile collider scale).",
    },
    "scaleMode": {
      "enum": [
        {
          "label": "FixedWidth",
          "value": 0,
        },
        {
          "label": "FixedHeight",
          "value": 1,
        },
        {
          "label": "Expand",
          "value": 2,
        },
        {
          "label": "Shrink",
          "value": 3,
        },
        {
          "label": "Match",
          "value": 4,
        },
      ],
      "tooltip": "How the canvas adapts the design resolution to the screen.",
    },
  },
  "Draggable": {
    "constrainMax": {
      "category": "Bounds",
      "tooltip": "Apply the upper bound below.",
    },
    "constrainMin": {
      "category": "Bounds",
      "tooltip": "Apply the lower bound below.",
    },
    "constraintMax": {
      "category": "Bounds",
      "tooltip": "Highest world position the drag may reach.",
    },
    "constraintMin": {
      "category": "Bounds",
      "tooltip": "Lowest world position the drag may reach.",
    },
    "dragThreshold": {
      "min": 0,
      "tooltip": "Pointer travel before a press becomes a drag.",
      "unit": "px",
    },
    "enabled": {
      "tooltip": "Whether this entity can be dragged at all.",
    },
    "lockX": {
      "category": "Axis",
      "tooltip": "Pin the X axis; the drag only moves in Y.",
    },
    "lockY": {
      "category": "Axis",
      "tooltip": "Pin the Y axis; the drag only moves in X.",
    },
  },
  "DragonBonesAnimation": {
    "animation": {
      "enumSource": "dragonbonesAnimations",
    },
    "armature": {
      "enumSource": "dragonbonesArmatures",
    },
    "fadeInTime": {
      "min": 0,
      "step": 0.05,
    },
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
    },
    "skeletonScale": {
      "min": 0,
    },
    "timeScale": {
      "min": 0,
    },
  },
  "GroupOpacity": {
    "opacity": {
      "max": 1,
      "min": 0,
      "step": 0.01,
      "tooltip": "Opacity of this entity and everything under it, multiplied with the opacity of every group above it.",
    },
  },
  "Impostor": {
    "enabled": {
      "tooltip": "Off: the mesh is always drawn as itself.",
    },
    "frames": {
      "max": 16,
      "min": 2,
      "step": 1,
      "tooltip": "Pictures along each side of the atlas (frames x frames in all). More is smoother as the view goes round, and smaller each.",
    },
    "resolution": {
      "max": 4096,
      "min": 128,
      "step": 128,
      "tooltip": "The atlas's side in pixels; each picture is this divided by frames.",
    },
    "screenSize": {
      "max": 1,
      "min": 0,
      "tooltip": "Screen height fraction below which the card replaces the mesh.",
    },
  },
  "Light": {
    "aimFollowedSun": {
      "advanced": true,
      "shownWhen": {
        "field": "type",
        "values": [
          1,
        ],
      },
      "tooltip": "With Follow Environment Sun: aim by this light's Transform, not by the panorama.",
    },
    "bakedTint": {
      "advanced": true,
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Multiply baked indirect light (lightmaps, probe volumes) by this colour (1 = as baked).",
    },
    "cookie": {
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          3,
        ],
      },
      "tooltip": "A texture whose alpha shapes this light (a cookie).",
    },
    "cookieSize": {
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          3,
        ],
      },
      "tooltip": "Cookie size in world units; 0 = the light's own reach.",
    },
    "diffuseScale": {
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Scale the light the environment gives surfaces, not what they reflect of it (1 = as the sky gives it).",
    },
    "diffuseTint": {
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Tint the light the environment gives surfaces, not what they reflect of it (white = as the sky gives it).",
    },
    "drawEnvironment": {
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Draw this environment as the sky behind the scene.",
    },
    "environment": {
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Baked environment (.esenv) this Ambient light casts.",
    },
    "environmentRotation": {
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Turn the environment about the up axis, in degrees.",
      "unit": "deg",
    },
    "falloff": {
      "max": 8,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          3,
        ],
      },
      "tooltip": "Falloff shape: 1 = linear, higher pools near the light, lower reaches further.",
    },
    "followEnvironmentSun": {
      "shownWhen": {
        "field": "type",
        "values": [
          1,
        ],
      },
      "tooltip": "Take direction and strength from the environment's sun, and light the sky without it.",
    },
    "groundColor": {
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "The ambient colour a surface facing straight down receives (Hemisphere).",
    },
    "hemisphere": {
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Light from above in Color, from below in Ground Color, blended by which way a surface faces.",
    },
    "innerAngle": {
      "advanced": true,
      "max": 180,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          3,
        ],
      },
      "unit": "°",
    },
    "innerRadius": {
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          3,
        ],
      },
      "tooltip": "Radius held at full strength before the falloff starts.",
    },
    "intensity": {
      "min": 0,
      "tooltip": "Brightness multiplier of the light.",
    },
    "inverseSquare": {
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          3,
        ],
      },
      "tooltip": "Fall off as 1/distance² in metres (a real lamp): intensity is the light 1 m away, radius only where it ends.",
    },
    "layerMax": {
      "max": 127,
      "min": -128,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          1,
          3,
        ],
      },
      "step": 1,
      "tooltip": "The highest sprite layer this light reaches (default: every layer).",
    },
    "layerMin": {
      "max": 127,
      "min": -128,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          1,
          3,
        ],
      },
      "step": 1,
      "tooltip": "The lowest sprite layer this light reaches (default: every layer).",
    },
    "meshShadows": {
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          1,
          3,
        ],
      },
      "tooltip": "Cast a shadow map over 3D meshes (Directional, Spot, Point).",
    },
    "outerAngle": {
      "advanced": true,
      "max": 180,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          3,
        ],
      },
      "unit": "°",
    },
    "radius": {
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          3,
        ],
      },
      "tooltip": "Falloff reach in world units (Point / Spot).",
    },
    "reflectionSaturation": {
      "advanced": true,
      "max": 1,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "How much colour baked reflection probes keep (0 = grey).",
    },
    "reflectionScale": {
      "advanced": true,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          2,
        ],
      },
      "tooltip": "Scale what baked reflection probes show (1 = as baked).",
    },
    "shadowDistance": {
      "advanced": true,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          1,
        ],
      },
      "tooltip": "Directional shadow distance; 0 = no directional shadow.",
    },
    "shadowExtent": {
      "advanced": true,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          1,
        ],
      },
      "tooltip": "Shadow map coverage radius; 0 = fit the view.",
    },
    "shadowSoftness": {
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          1,
          3,
        ],
      },
      "tooltip": "Shadow softness (light-source size); 0 = hard edge.",
    },
    "shadowStrength": {
      "max": 1,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          0,
          1,
          3,
        ],
      },
      "slider": true,
      "tooltip": "How much of this light its shadows remove (1 = all of it).",
    },
    "sourceAngle": {
      "advanced": true,
      "max": 90,
      "min": 0,
      "shownWhen": {
        "field": "type",
        "values": [
          1,
        ],
      },
      "tooltip": "Angular size of a Directional light's source (the sun is 0.53); 0 = hard edge.",
      "unit": "°",
    },
    "type": {
      "enum": [
        {
          "label": "Point",
          "value": 0,
        },
        {
          "label": "Directional",
          "value": 1,
        },
        {
          "label": "Ambient",
          "value": 2,
        },
        {
          "label": "Spot",
          "value": 3,
        },
      ],
      "tooltip": "Point, Directional, Ambient, or Spot.",
    },
  },
  "LightProbeVolume": {
    "capture": {
      "tooltip": "Fill this box at run time from a capture at its centre (the room as lit now), not from a bake.",
    },
    "captureInterval": {
      "min": 0,
      "shownWhen": {
        "field": "capture",
        "values": [
          1,
        ],
      },
      "tooltip": "Seconds between captures (0 = once). Each one adds a bounce.",
    },
    "halfExtents": {
      "min": 0,
      "tooltip": "Half the box this volume covers, from the entity's position.",
    },
    "probes": {
      "tooltip": "Baked probe grid (.esprobes) filling this box.",
    },
    "spacing": {
      "min": 1,
      "tooltip": "World units between probes the next bake lays down.",
    },
  },
  "Marker": {
    "properties": {
      "map": true,
    },
  },
  "MeshRenderer": {
    "castShadows": {
      "tooltip": "Cast shadows: whether this mesh blocks the light. Water and other surfaces light passes through say no.",
    },
    "color": {
      "tooltip": "Tint multiplied into the vertex colors (white = unchanged).",
    },
    "cullBackfaces": {
      "tooltip": "Cull back faces: triangles facing away from the camera are skipped.",
    },
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
      "tooltip": "Sorting layer — controls draw order across renderables.",
    },
    "lit": {
      "tooltip": "Receive 2D lights: Light entities light this mesh (flat normal). A custom material overrides this.",
    },
    "material": {
      "advanced": true,
    },
    "normalMap": {
      "tooltip": "Normal map (tangent space). Needs a mesh with normals.",
    },
    "opaque": {
      "tooltip": "Opaque: no blending; writes and tests depth, so meshes occlude each other.",
    },
    "parallax": {
      "advanced": true,
      "tooltip": "Parallax scroll factor (1 = with world, <1 = slower, 0 = locked to camera).",
    },
  },
  "Occluder": {
    "enabled": {
      "tooltip": "Off: this box hides nothing.",
    },
    "halfExtents": {
      "min": 0,
      "tooltip": "Half the solid box, in world units, from the entity's position.",
    },
  },
  "ParticleCollider": {
    "halfExtents": {
      "category": "Shape",
    },
    "halfHeight": {
      "category": "Shape",
      "min": 0,
    },
    "inverted": {
      "category": "Shape",
    },
    "mask": {
      "bitmask": {
        "source": "collisionLayers",
      },
      "category": "Shape",
      "max": 65535,
      "min": 0,
      "step": 1,
    },
    "radius": {
      "category": "Shape",
      "min": 0,
    },
    "shape": {
      "category": "Shape",
      "enum": [
        {
          "label": "Sphere",
          "value": 0,
        },
        {
          "label": "Box",
          "value": 1,
        },
        {
          "label": "Capsule",
          "value": 2,
        },
      ],
    },
  },
  "ParticleEmitter": {
    "addedVelocityMax": {
      "category": "Velocity",
    },
    "addedVelocityMin": {
      "category": "Velocity",
      "tooltip": "A velocity each particle carries on top of its own, chosen between the two ends when it is born. Gravity, damping, noise and the speed limit do not act on it. Run by the CPU simulation.",
    },
    "angleSpreadMax": {
      "category": "Velocity",
      "shownWhen": {
        "field": "shape",
        "values": [
          0,
          2,
        ],
      },
      "unit": "°",
    },
    "angleSpreadMin": {
      "category": "Velocity",
      "shownWhen": {
        "field": "shape",
        "values": [
          0,
          2,
        ],
      },
      "unit": "°",
    },
    "angularVelocityMax": {
      "category": "Rotation",
    },
    "angularVelocityMin": {
      "category": "Rotation",
    },
    "blendMode": {
      "category": "Rendering",
      "enum": [
        {
          "label": "Normal",
          "value": 0,
        },
        {
          "label": "Additive",
          "value": 1,
        },
        {
          "label": "Multiply",
          "value": 2,
        },
        {
          "label": "Screen",
          "value": 3,
        },
        {
          "label": "PremultipliedAlpha",
          "value": 4,
        },
        {
          "label": "PmaAdditive",
          "value": 5,
        },
        {
          "label": "Lighten",
          "value": 6,
        },
        {
          "label": "Darken",
          "value": 7,
        },
        {
          "label": "Overlay",
          "value": 8,
        },
        {
          "label": "None",
          "value": 9,
        },
      ],
    },
    "burstCount": {
      "category": "Emission",
      "min": 0,
      "step": 1,
    },
    "burstInterval": {
      "category": "Emission",
      "min": 0,
    },
    "bursts": {
      "category": "Emission",
    },
    "collisionBounce": {
      "category": "Collision",
      "max": 1,
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionEnabled": {
      "category": "Collision",
    },
    "collisionEventBudget": {
      "category": "Collision",
      "max": 1024,
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
      "step": 1,
    },
    "collisionEvents": {
      "category": "Collision",
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionFallback": {
      "category": "Collision",
      "enum": [
        {
          "label": "Floor",
          "value": 0,
        },
        {
          "label": "Skip",
          "value": 1,
        },
      ],
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionFloor": {
      "category": "Collision",
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionFriction": {
      "category": "Collision",
      "max": 1,
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionLifetimeLoss": {
      "category": "Collision",
      "max": 1,
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionMask": {
      "bitmask": {
        "source": "collisionLayers",
      },
      "category": "Collision",
      "max": 65535,
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
      "step": 1,
    },
    "collisionMaxDistance": {
      "category": "Collision",
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionMode": {
      "category": "Collision",
      "enum": [
        {
          "label": "Floor",
          "value": 0,
        },
        {
          "label": "Physics2D",
          "value": 1,
        },
        {
          "label": "Physics3D",
          "value": 2,
        },
        {
          "label": "Depth",
          "value": 3,
        },
        {
          "label": "Sdf",
          "value": 4,
        },
      ],
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "collisionQueryBudget": {
      "category": "Collision",
      "max": 4096,
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
      "step": 1,
    },
    "collisionThickness": {
      "category": "Collision",
      "min": 0,
      "shownWhen": {
        "field": "collisionEnabled",
        "values": [
          1,
        ],
      },
    },
    "colorEasing": {
      "category": "Color",
      "enum": [
        {
          "label": "Linear",
          "value": 0,
        },
        {
          "label": "EaseIn",
          "value": 1,
        },
        {
          "label": "EaseOut",
          "value": 2,
        },
        {
          "label": "EaseInOut",
          "value": 3,
        },
      ],
    },
    "colorGradient": {
      "category": "Color",
      "gradient": true,
    },
    "damping": {
      "category": "Velocity",
      "min": 0,
    },
    "duration": {
      "category": "Emission",
      "min": 0,
    },
    "endColor": {
      "category": "Color",
    },
    "endSizeMax": {
      "category": "Size",
      "min": 0,
    },
    "endSizeMin": {
      "category": "Size",
      "min": 0,
    },
    "gpuSimulation": {
      "category": "Emission",
      "tooltip": "Simulate on the GPU (WebGPU compute). Falls back to a capped CPU simulation elsewhere. Sub-emitters, trails and physics collision are CPU-only.",
    },
    "gravity": {
      "category": "Velocity",
    },
    "layer": {
      "category": "Rendering",
      "enumSource": "sortingLayers",
      "step": 1,
    },
    "lengthScale": {
      "category": "Rendering",
      "min": 0,
      "shownWhen": {
        "field": "renderMode",
        "values": [
          1,
        ],
      },
      "tooltip": "Stretched: the quad's own length is its size times this.",
    },
    "lifetimeMax": {
      "category": "Lifetime",
      "min": 0,
    },
    "lifetimeMin": {
      "category": "Lifetime",
      "min": 0,
    },
    "limitDampen": {
      "category": "Velocity",
      "max": 1,
      "min": 0,
      "tooltip": "How much of the excess over the limit is removed per 1/60 s: 1 clamps at once, a small value brakes gently.",
    },
    "looping": {
      "category": "Emission",
    },
    "material": {
      "category": "Rendering",
    },
    "maxParticles": {
      "category": "Emission",
      "min": 1,
      "step": 1,
    },
    "noiseFrequency": {
      "category": "Noise",
      "min": 0,
    },
    "noiseOctaves": {
      "category": "Noise",
      "max": 8,
      "min": 1,
      "step": 1,
    },
    "noiseScrollSpeed": {
      "category": "Noise",
    },
    "noiseStrength": {
      "category": "Noise",
      "min": 0,
    },
    "playOnStart": {
      "category": "Emission",
    },
    "rate": {
      "category": "Emission",
      "min": 0,
    },
    "renderMode": {
      "category": "Rendering",
      "enum": [
        {
          "label": "Billboard",
          "value": 0,
        },
        {
          "label": "Stretched",
          "value": 1,
        },
      ],
      "tooltip": "Billboard faces the view. Stretched lays the quad's long axis (its Y) along the particle's velocity and lengthens it with speed. Drawn by the CPU simulation; a GPU-simulated emitter draws as Billboard.",
    },
    "rotationMax": {
      "category": "Rotation",
      "unit": "°",
    },
    "rotationMin": {
      "category": "Rotation",
      "unit": "°",
    },
    "shape": {
      "category": "Shape",
      "enum": [
        {
          "label": "Point",
          "value": 0,
        },
        {
          "label": "Circle",
          "value": 1,
        },
        {
          "label": "Box",
          "value": 2,
        },
        {
          "label": "Cone",
          "value": 3,
        },
        {
          "label": "Sphere",
          "value": 4,
        },
        {
          "label": "Hemisphere",
          "value": 5,
        },
      ],
    },
    "shapeAngle": {
      "category": "Shape",
      "shownWhen": {
        "field": "shape",
        "values": [
          3,
        ],
      },
      "unit": "°",
    },
    "shapeRadius": {
      "category": "Shape",
      "min": 0,
      "shownWhen": {
        "field": "shape",
        "values": [
          1,
          3,
          4,
          5,
        ],
      },
    },
    "shapeSize": {
      "category": "Shape",
      "shownWhen": {
        "field": "shape",
        "values": [
          2,
        ],
      },
    },
    "simulationSpace": {
      "category": "Rendering",
      "enum": [
        {
          "label": "World",
          "value": 0,
        },
        {
          "label": "Local",
          "value": 1,
        },
      ],
    },
    "simulationSpeed": {
      "category": "Emission",
      "min": 0,
      "tooltip": "How fast this emitter's own time runs: 2 plays it twice as fast, 0.5 at half, 0 holds it. Scales emission, lifetimes and motion alike.",
    },
    "sizeCurve": {
      "category": "Size",
      "curve": true,
    },
    "sizeEasing": {
      "category": "Size",
      "enum": [
        {
          "label": "Linear",
          "value": 0,
        },
        {
          "label": "EaseIn",
          "value": 1,
        },
        {
          "label": "EaseOut",
          "value": 2,
        },
        {
          "label": "EaseInOut",
          "value": 3,
        },
      ],
    },
    "speedLimit": {
      "category": "Velocity",
      "min": 0,
      "tooltip": "The fastest a particle may move under its own velocity; 0 is no limit. A faster particle is pulled back toward the limit. Run by the CPU simulation.",
    },
    "speedMax": {
      "category": "Velocity",
    },
    "speedMin": {
      "category": "Velocity",
    },
    "spriteColumns": {
      "category": "Texture",
      "min": 1,
      "step": 1,
    },
    "spriteFPS": {
      "category": "Texture",
      "min": 0,
    },
    "spriteLoop": {
      "category": "Texture",
    },
    "spriteRows": {
      "category": "Texture",
      "min": 1,
      "step": 1,
    },
    "startColor": {
      "category": "Color",
    },
    "startDelay": {
      "category": "Emission",
      "min": 0,
      "tooltip": "Seconds after the emitter starts playing before it emits anything. The duration counts from the end of the delay.",
    },
    "startSizeMax": {
      "category": "Size",
      "min": 0,
    },
    "startSizeMin": {
      "category": "Size",
      "min": 0,
    },
    "subEmitter": {
      "category": "SubEmitter",
    },
    "subEmitterChance": {
      "category": "SubEmitter",
      "max": 1,
      "min": 0,
    },
    "subEmitterInheritVelocity": {
      "category": "SubEmitter",
      "max": 1,
      "min": 0,
    },
    "subEmitterTrigger": {
      "category": "SubEmitter",
      "enum": [
        {
          "label": "Death",
          "value": 0,
        },
        {
          "label": "Birth",
          "value": 1,
        },
        {
          "label": "Collision",
          "value": 2,
        },
      ],
    },
    "texture": {
      "category": "Texture",
    },
    "trailEnabled": {
      "category": "Trail",
    },
    "trailMinDistance": {
      "category": "Trail",
      "min": 0,
      "shownWhen": {
        "field": "trailEnabled",
        "values": [
          1,
        ],
      },
    },
    "trailPoints": {
      "category": "Trail",
      "max": 12,
      "min": 2,
      "shownWhen": {
        "field": "trailEnabled",
        "values": [
          1,
        ],
      },
      "step": 1,
    },
    "trailWidth": {
      "category": "Trail",
      "min": 0,
      "shownWhen": {
        "field": "trailEnabled",
        "values": [
          1,
        ],
      },
    },
    "velocityScale": {
      "category": "Rendering",
      "min": 0,
      "shownWhen": {
        "field": "renderMode",
        "values": [
          1,
        ],
      },
      "tooltip": "Stretched: how much of the particle's speed is added to the quad's length, in world units per unit of speed.",
    },
  },
  "ParticleForceField": {
    "direction": {
      "category": "Field",
    },
    "falloff": {
      "category": "Field",
    },
    "radius": {
      "category": "Field",
      "min": 0,
    },
    "strength": {
      "category": "Field",
    },
    "type": {
      "category": "Field",
      "enum": [
        {
          "label": "Directional",
          "value": 0,
        },
        {
          "label": "Point",
          "value": 1,
        },
        {
          "label": "Vortex",
          "value": 2,
        },
        {
          "label": "Drag",
          "value": 3,
        },
      ],
    },
  },
  "PlanarReflection": {
    "axis": {
      "category": "Capture",
      "enum": [
        {
          "label": "X",
          "value": 0,
        },
        {
          "label": "Y",
          "value": 1,
        },
        {
          "label": "Z",
          "value": 2,
        },
      ],
      "tooltip": "Local normal axis, transformed with the entity. Y for a floor, Z for a mirror.",
    },
    "clipOffset": {
      "category": "Capture",
      "min": 0,
      "step": 0.005,
      "tooltip": "Clip offset in world units; excludes geometry behind the reflecting plane.",
    },
    "cullingMask": {
      "bitmask": {
        "source": "sortingLayers",
      },
      "category": "Capture",
      "tooltip": "Sorting-layer bits captured by the reflection. The receiving surface and screen UI are excluded.",
    },
    "maxSize": {
      "category": "Quality",
      "max": 4096,
      "min": 64,
      "shownWhen": {
        "field": "quality",
        "values": [
          1,
        ],
      },
      "step": 64,
    },
    "quality": {
      "category": "Quality",
      "enum": [
        {
          "label": "Project",
          "value": 0,
        },
        {
          "label": "Custom",
          "value": 1,
        },
      ],
    },
    "resolutionScale": {
      "category": "Quality",
      "max": 1,
      "min": 0.125,
      "shownWhen": {
        "field": "quality",
        "values": [
          1,
        ],
      },
      "step": 0.125,
    },
    "revision": {
      "advanced": true,
    },
    "update": {
      "category": "Quality",
      "enum": [
        {
          "label": "EveryFrame",
          "value": 0,
        },
        {
          "label": "FixedRate",
          "value": 1,
        },
        {
          "label": "OnDemand",
          "value": 2,
        },
      ],
      "shownWhen": {
        "field": "quality",
        "values": [
          1,
        ],
      },
      "tooltip": "Only the reflection capture; never limits the main scene frame rate.",
    },
    "updatesPerSecond": {
      "category": "Quality",
      "max": 120,
      "min": 1,
      "shownWhen": {
        "field": "update",
        "values": [
          1,
        ],
      },
    },
  },
  "PostProcessVolume": {
    "effects": {
      "effectStack": true,
    },
  },
  "ReflectionProbe": {
    "enabled": {
      "tooltip": "Off: what stands inside this box reflects the sky again.",
    },
    "halfExtents": {
      "min": 0,
      "tooltip": "Half the box this probe answers inside, from the entity's position.",
    },
    "reflection": {
      "tooltip": "The scene's baked reflections (the baker writes this).",
    },
    "slot": {
      "advanced": true,
      "min": 0,
      "tooltip": "Which column of the atlas this probe occupies (the baker writes this).",
    },
  },
  "ShadowCaster2D": {
    "size": {
      "min": 0,
      "tooltip": "Occluder box size in world units (centred on the entity, turning with it). Unused when the caster has an outline.",
    },
  },
  "ShapeRenderer": {
    "cornerRadius": {
      "min": 0,
    },
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
    },
    "parallax": {
      "advanced": true,
      "tooltip": "Parallax scroll factor (1 = with world, <1 = slower, 0 = locked to camera).",
    },
    "shapeType": {
      "enum": [
        {
          "label": "Circle",
          "value": 0,
        },
        {
          "label": "Capsule",
          "value": 1,
        },
        {
          "label": "RoundedRect",
          "value": 2,
        },
      ],
    },
  },
  "SortingGroup": {
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
      "tooltip": "Sorting layer for the entire group — members no longer state their own.",
    },
    "order": {
      "max": 127,
      "min": -128,
      "step": 1,
      "tooltip": "Draw order of the whole group inside its sorting layer — higher draws on top.",
    },
  },
  "SpineAnimation": {
    "animation": {
      "enumSource": "spineAnimations",
    },
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
    },
    "skeletonScale": {
      "min": 0,
    },
    "skin": {
      "enumSource": "spineSkins",
    },
    "timeScale": {
      "min": 0,
    },
  },
  "SpringBone": {
    "colliders": {
      "category": "Collision",
      "tooltip": "Entities with a SpringBoneCollider that this chain is kept out of (the head, the shoulders).",
    },
    "drag": {
      "category": "Motion",
      "max": 1,
      "min": 0,
      "slider": true,
      "step": 0.01,
      "tooltip": "How much of its speed a bone loses each frame. Higher settles sooner.",
    },
    "enabled": {
      "tooltip": "Off leaves the chain exactly as the animation poses it.",
    },
    "endLength": {
      "category": "Chain",
      "min": 0,
      "step": 0.1,
      "tooltip": "Length of the tip past each end bone, in world units. 0 leaves the end bones unsimulated.",
    },
    "gravity": {
      "category": "Motion",
      "tooltip": "Gravity on the chain, in world units a second squared (world y is up).",
    },
    "radius": {
      "category": "Chain",
      "min": 0,
      "step": 0.1,
      "tooltip": "Thickness of the strand, in world units, kept clear of the colliders.",
    },
    "stiffness": {
      "category": "Motion",
      "max": 1,
      "min": 0,
      "slider": true,
      "step": 0.01,
      "tooltip": "How hard each bone is pulled back toward its animated pose. 0 hangs free, 1 follows the animation exactly.",
    },
    "weight": {
      "category": "Chain",
      "max": 1,
      "min": 0,
      "slider": true,
      "step": 0.01,
      "tooltip": "How much of the simulation is used. 0 is the animation alone.",
    },
    "wind": {
      "category": "Wind",
      "tooltip": "A steady wind on the chain, in world units a second squared. Zero is still air.",
    },
    "windFrequency": {
      "category": "Wind",
      "min": 0,
      "step": 0.05,
      "tooltip": "Gusts a second.",
    },
    "windGust": {
      "category": "Wind",
      "max": 1,
      "min": 0,
      "slider": true,
      "step": 0.01,
      "tooltip": "How far gusts swing the wind's strength. 0 is a steady wind, 1 takes it from calm to twice its strength.",
    },
  },
  "SpringBoneCollider": {
    "height": {
      "category": "Shape",
      "min": 0,
      "shownWhen": {
        "field": "shape",
        "values": [
          1,
        ],
      },
      "step": 0.1,
      "tooltip": "A capsule's length between the centres of its end spheres, in world units before scale.",
    },
    "offset": {
      "category": "Shape",
      "tooltip": "Where the centre of the shape is, in the entity's own space.",
    },
    "radius": {
      "category": "Shape",
      "min": 0,
      "step": 0.1,
      "tooltip": "Radius in world units, before the entity's scale.",
    },
    "shape": {
      "category": "Shape",
      "enum": [
        {
          "label": "Sphere",
          "value": 0,
        },
        {
          "label": "Capsule",
          "value": 1,
        },
      ],
      "tooltip": "Sphere, or a capsule along the entity's own Y axis.",
    },
  },
  "Sprite": {
    "color": {
      "tooltip": "Tint multiplied into the texture (white = unchanged).",
    },
    "drawMode": {
      "enum": [
        {
          "label": "Auto",
          "value": 0,
        },
        {
          "label": "Simple",
          "value": 1,
        },
        {
          "label": "Tiled",
          "value": 2,
        },
        {
          "label": "NineSlice",
          "value": 3,
        },
      ],
      "tooltip": "Draw mode: Auto infers from tile size and the texture's 9-slice border; the others override it.",
    },
    "layer": {
      "enumSource": "sortingLayers",
      "step": 1,
      "tooltip": "Sorting layer — controls draw order across sprites.",
    },
    "lit": {
      "tooltip": "Receive 2D lights: Light entities light this sprite (flat normal). A custom material overrides this.",
    },
    "maskInteraction": {
      "enum": [
        {
          "label": "None",
          "value": 0,
        },
        {
          "label": "VisibleInside",
          "value": 1,
        },
        {
          "label": "VisibleOutside",
          "value": 2,
        },
      ],
      "tooltip": "Whether a SpriteMask drawn before this sprite clips it, and which side survives.",
    },
    "material": {
      "advanced": true,
    },
    "order": {
      "max": 127,
      "min": -128,
      "step": 1,
      "tooltip": "Draw order inside the sorting layer — higher draws on top. Overrides the layer's Y-sort or depth ordering; leave 0 to keep it.",
    },
    "parallax": {
      "advanced": true,
      "tooltip": "Parallax scroll factor (1 = with world, <1 = slower, 0 = locked to camera).",
    },
    "pivot": {
      "normalizedOf": "size",
      "tooltip": "Anchor point the sprite rotates and scales about, as a fraction of its size (0.5,0.5 = centre). Values outside 0–1 sit off the sprite.",
    },
    "tileSize": {
      "advanced": true,
    },
    "tileSpacing": {
      "advanced": true,
    },
    "uvOffset": {
      "advanced": true,
    },
    "uvScale": {
      "advanced": true,
    },
  },
  "SpriteMask": {
    "alphaCutoff": {
      "max": 1,
      "min": 0,
      "slider": true,
      "tooltip": "Cut to the sprite's shape instead of its box: fragments below this alpha do not mask.",
    },
    "limitRange": {
      "tooltip": "Limit how far this mask reaches; off = every sprite drawn after it.",
    },
    "rangeEndLayer": {
      "enumSource": "sortingLayers",
      "shownWhen": {
        "field": "limitRange",
        "values": [
          1,
        ],
      },
      "step": 1,
      "tooltip": "Last sorting layer this mask reaches.",
    },
    "rangeEndOrder": {
      "max": 127,
      "min": -128,
      "shownWhen": {
        "field": "limitRange",
        "values": [
          1,
        ],
      },
      "step": 1,
      "tooltip": "Last order inside that layer this mask reaches, inclusive.",
    },
  },
  "TilemapLayer": {
    "hexSideLength": {
      "min": 0,
      "shownWhen": {
        "field": "orientation",
        "values": [
          3,
        ],
      },
      "step": 1,
      "tooltip": "Hexagonal side length in px (0 = a regular pointy hex = tileHeight/2). Ignored unless orientation is Hexagonal.",
    },
    "lit": {
      "tooltip": "Receive 2D lights: Light entities light this layer's tiles (flat normal).",
    },
    "opacity": {
      "max": 1,
      "min": 0,
      "slider": true,
      "tooltip": "Layer transparency (0 = invisible, 1 = opaque).",
    },
    "orientation": {
      "enum": [
        {
          "label": "Orthogonal",
          "value": 0,
        },
        {
          "label": "Isometric",
          "value": 1,
        },
        {
          "label": "Staggered",
          "value": 2,
        },
        {
          "label": "Hexagonal",
          "value": 3,
        },
      ],
      "tooltip": "Grid layout: orthogonal, isometric, staggered, or hexagonal.",
    },
    "renderLayer": {
      "enumSource": "sortingLayers",
      "step": 1,
    },
    "staggerAxis": {
      "enum": [
        {
          "label": "Y",
          "value": 0,
        },
        {
          "label": "X",
          "value": 1,
        },
      ],
      "shownWhen": {
        "field": "orientation",
        "values": [
          2,
          3,
        ],
      },
      "tooltip": "Stagger axis (staggered/hex): Y shifts rows, X shifts columns.",
    },
    "staggerIndex": {
      "enum": [
        {
          "label": "Odd",
          "value": 0,
        },
        {
          "label": "Even",
          "value": 1,
        },
      ],
      "shownWhen": {
        "field": "orientation",
        "values": [
          2,
          3,
        ],
      },
      "tooltip": "Which lines carry the half-cell shift (staggered/hex).",
    },
    "tilesetColumns": {
      "min": 1,
      "step": 1,
    },
  },
  "TimeOfDay": {
    "daySeconds": {
      "max": 86400,
      "min": 0,
      "step": 1,
      "unit": "s",
    },
    "declination": {
      "max": 23.5,
      "min": -23.5,
      "step": 0.5,
      "unit": "deg",
    },
    "drive": {
      "flags": [
        {
          "label": "Lights",
          "value": 1,
        },
        {
          "label": "Sky",
          "value": 2,
        },
        {
          "label": "Fog",
          "value": 4,
        },
        {
          "label": "Exposure",
          "value": 8,
        },
        {
          "label": "Reflections",
          "value": 16,
        },
      ],
    },
    "hour": {
      "max": 24,
      "min": 0,
      "step": 0.05,
      "unit": "h",
    },
    "latitude": {
      "max": 90,
      "min": -90,
      "step": 1,
      "unit": "deg",
    },
    "north": {
      "max": 180,
      "min": -180,
      "step": 1,
      "unit": "deg",
    },
  },
  "TrailRenderer": {
    "blendMode": {
      "category": "Rendering",
      "tooltip": "Blend mode: 0 Normal, 1 Additive (glow), 2 Multiply, …",
    },
    "emitting": {
      "category": "Trail",
      "tooltip": "Record new points. False = freeze and let the streak fade in place.",
    },
    "endColor": {
      "category": "Color",
      "tooltip": "Color at the tail (oldest point) — usually alpha 0 to fade out.",
    },
    "endWidth": {
      "category": "Width",
      "min": 0,
      "tooltip": "Full ribbon width at the tail (oldest point).",
    },
    "layer": {
      "category": "Rendering",
      "enumSource": "sortingLayers",
      "step": 1,
      "tooltip": "Sorting layer — controls draw order across renderables.",
    },
    "material": {
      "advanced": true,
      "category": "Rendering",
    },
    "minVertexDistance": {
      "category": "Trail",
      "min": 0,
      "tooltip": "Min world distance moved before a new trail point is recorded.",
    },
    "startColor": {
      "category": "Color",
      "tooltip": "Color at the head (newest point).",
    },
    "startWidth": {
      "category": "Width",
      "min": 0,
      "tooltip": "Full ribbon width at the head (newest point).",
    },
    "texture": {
      "category": "Rendering",
    },
    "time": {
      "category": "Trail",
      "min": 0,
      "tooltip": "Seconds each trail point lives before it fades out of the tail.",
    },
  },
  "Transform": {
    "position": {
      "tooltip": "Local position in world units, relative to the parent.",
    },
    "rotation": {
      "tooltip": "Local rotation in degrees, applied X then Y then Z. 2D content turns about Z alone.",
    },
    "scale": {
      "tooltip": "Local scale per axis (1 = original size; negative flips).",
    },
  },
  "Weather": {
    "drive": {
      "flags": [
        {
          "label": "Lights",
          "value": 1,
        },
        {
          "label": "Fog",
          "value": 2,
        },
        {
          "label": "Rain",
          "value": 4,
        },
        {
          "label": "Grade",
          "value": 8,
        },
        {
          "label": "Exposure",
          "value": 16,
        },
        {
          "label": "Reflections",
          "value": 32,
        },
        {
          "label": "Sound",
          "value": 64,
        },
        {
          "label": "Wind",
          "value": 128,
        },
      ],
    },
    "duration": {
      "max": 600,
      "min": 0.1,
      "step": 0.1,
      "unit": "s",
    },
    "hold": {
      "max": 3600,
      "min": 0,
      "step": 1,
      "unit": "s",
    },
    "preset": {
      "enum": [
        {
          "label": "Clear",
          "value": 0,
        },
        {
          "label": "Mist",
          "value": 1,
        },
        {
          "label": "Overcast",
          "value": 2,
        },
        {
          "label": "Rain",
          "value": 3,
        },
        {
          "label": "Storm",
          "value": 4,
        },
        {
          "label": "Snow",
          "value": 5,
        },
      ],
    },
    "progress": {
      "max": 1,
      "min": 0,
      "step": 0.01,
    },
    "target": {
      "enum": [
        {
          "label": "None",
          "value": -1,
        },
        {
          "label": "Clear",
          "value": 0,
        },
        {
          "label": "Mist",
          "value": 1,
        },
        {
          "label": "Overcast",
          "value": 2,
        },
        {
          "label": "Rain",
          "value": 3,
        },
        {
          "label": "Storm",
          "value": 4,
        },
        {
          "label": "Snow",
          "value": 5,
        },
      ],
    },
  },
}
`;