set_viewport_state
Control the PlayCanvas editor viewport by setting camera position, rotation, projection, grid, bones, icon size, and expanded state to customize the editing view.
Instructions
Set the editor viewport camera transform, projection, grid, bones, icon size, and expanded state. This controls the editor view, not an entity's persisted enabled state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | ||
| bones | No | ||
| cameraId | No | Editor camera name (perspective/top/front/etc.) or camera entity resource_id | |
| expanded | No | ||
| iconSize | No | ||
| position | No | ||
| rotation | No | ||
| projection | No | ||
| orthoHeight | No |