cam_set_viewport
Activate a camera view in a viewport (optionally a specific one) to switch directly to that camera's perspective.
Instructions
把一个相机设为活动视口(可指定第几个视口 viewport)。等价于进入该相机的视图。 [English] Make a camera the active viewport (optionally a specific viewport index). Equivalent to entering that camera's view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera | Yes | 相机名称。 | Camera name. | |
| viewport | No | 视口编号(>0 时指定具体视口)。 | Viewport index (>0 selects a specific one). |