7. Understand the small amount of JSON you need
Many traditional cutscene actions use the Action Data box for their settings. Advanced camera, rendering and exposed-function actions also have dedicated fields. You do not need to write a program to edit a simple JSON action.
{
"type": "SetCamera",
"position": [0, 4.5, 9],
"target": [0, 1, -0.3],
"fov": 42
}| Piece | Read it as |
|---|---|
| "type": "SetCamera" | The action to perform. Keep the spelling. |
| "position": [0, 4.5, 9] | A three-number X, Y, Z position. |
| "target": [0, 1, -0.3] | The point the camera looks toward. |
| "fov": 42 | The perspective field of view, in degrees. |
| true / false | Boolean values; no quotation marks. |
| Comma | Separates entries; do not add one after the final entry. |
Keep the outer braces. Put double quotation marks around field names and text values. Numbers stay unquoted. Use a decimal point, rather than a decimal comma, inside the data.
A valid JSON object is not automatically a valid shot. A misspelled character ID can still look perfectly correct as JSON. Apply the event, validate the project and test the result.
