unity-camera
Control Unity Scene View and Game cameras
How do I install this agent skill?
npx skills add https://github.com/besty0728/unity-skills --skill unity-cameraIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a set of tools for controlling cameras within the Unity Editor, including both the editor Scene View and Game cameras. It allows for transform adjustments, property settings, and capturing screenshots to disk or as base64 data. No malicious patterns or security vulnerabilities were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Unity Camera Skills
Control the Scene View camera and Game Cameras: creation, transform, properties, culling mask, orthographic mode and screenshots. Parameters come from the schema (GET /skills/schema?category=Camera&wire=v2); execution and dryRun rules: root SKILL.md.
When to use
- Framing the Scene View
- Creating or adjusting Game Cameras
- Tweaking FOV, clipping planes or culling
- Capturing a Game Camera or Scene View screenshot
Rules
- The skills control two different cameras.
camera_get_info,camera_set_transform,camera_look_atandcamera_align_view_to_objectact on the editor Scene View viewport.camera_create,camera_get_properties,camera_set_properties,camera_set_culling_mask,camera_set_orthographicandcamera_screenshotact on Game Cameras.camera_get_infowill not show a camera you just created: usecamera_get_propertiesorcamera_list. camera_set_transformpositions the pivot (the framed world point), not the eye.camera_set_propertiesechoes the post-write state andapplied; that is the verification, so do not re-read. An unparseableclearFlagsrejects the whole call before any write.camera_screenshotandcamera_sceneview_screenshotsave to a file. UsereturnImageonly for clients that cannot read the project's files; a local agent should read the PNG atpath.camera_sceneview_screenshotneeds the Scene View window open and visible for the overlay capture; it falls back to a clean offscreen render when the internal API is missing (modesays which).- Cinemachine virtual cameras belong to the cinemachine module. Timeline camera tracks belong to timeline. For screenshots of the whole Game View, use
scene_screenshot.
Pitfalls
camera_move,camera_rotateandcamera_deletedo not exist: usecamera_set_transform(Scene View),gameobject_set_transform(Game Camera) andgameobject_delete(Game Camera).camera_set_fovdoes not exist: usecamera_set_propertieswithfieldOfView.
Skills Overview
| Skill | Purpose |
|---|---|
camera_get_info | Scene View viewport position and rotation |
camera_set_transform | Set the Scene View pivot, rotation and size |
camera_look_at | Focus the Scene View on a world point |
camera_align_view_to_object | Align the Scene View to a GameObject |
camera_create | Create a Game Camera |
camera_list | List cameras in the scene |
camera_get_properties | Read Game Camera properties |
camera_set_properties | Set FOV, clip planes, clear flags, background, depth |
camera_set_culling_mask | Set the culling mask by layer names |
camera_set_orthographic | Switch a Game Camera between orthographic and perspective |
camera_screenshot | Render one Game Camera to a PNG |
camera_sceneview_screenshot | Capture the editor Scene View to a PNG |
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/besty0728/unity-skills/unity-camera">View unity-camera on skillZs</a>