Unity · Schema

CreateScriptRequest

Game DevelopmentReal-Time 3DMultiplayerGame ServicesCloud Gaming

Properties

Name Type Description
name string Unique script name within the project
language string
code string JavaScript code for the script
params array
View JSON Schema on GitHub

JSON Schema

unity-createscriptrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateScriptRequest",
  "title": "CreateScriptRequest",
  "type": "object",
  "required": [
    "name",
    "language",
    "code"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique script name within the project"
    },
    "language": {
      "type": "string",
      "enum": [
        "JS"
      ]
    },
    "code": {
      "type": "string",
      "description": "JavaScript code for the script"
    },
    "params": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScriptParameter"
      }
    }
  }
}