## 它的作用
將**一層資料夾**匯出成**緊湊透明的PNG**,用於遊戲開發(Unity、Godot 等)。
錄製的步驟:
1. 隱藏所有其他圖層(單人視角)
2. 從當前圖層建立選取
3. 裁切畫布至選片
4. 匯出為 PNG(alpha 通道)
5. 恢復其他層的可見性
## 如何使用
1. 在圖層調色盤中選擇目標圖層資料夾。
![]()
2. 開啟**自動動作**調色盤→播放**將資料夾匯出為PNG**。
3. 在匯出對話框中,選擇儲存路徑和檔名。
4. **重要事項:** 匯出後,按一次**Ctrl+Z(復原)**以恢復原始畫布大小。該動作在出口時裁切畫布;復原則能讓它恢復,且不會失去任何層次。
## 小技巧
- 一次匯出一個資料夾。固定檔名可以讓你在 Unity 中覆蓋相同的 PNG——參考資料會保持完整。
- 若出現匯出設定對話框,請勾選**匯出 alpha 通道**。
- 適用於 CSP PRO/EX。基於選取的匯出(無裁切)僅能輸出;此動作改用裁切 + 手動復原。
## 已知的限制
- 復原不會在自動操作中記錄——每次匯出後你必須手動還原裁切。
- 在還原前不要先儲存 .clip 檔案,否則會保存裁切後的畫布。
---
## 日本語 / 中文(简要)
**使い方:** フォルダを選択 → 再生 → PNG保存 → **Ctrl+Z でキャンバス復元**
**用法:** 選中資料夾 → 播放 → 保存 PNG → **Ctrl+Z 恢復畫布尺寸**
## What it does
Exports **one layer folder** as a **tight, transparent PNG** for game development (Unity, Godot, etc.).
Recorded steps:
1. Hide all other layers (solo view)
2. Create selection from current layer
3. Crop canvas to selection
4. Export as PNG (alpha channel)
5. Restore other layers' visibility
## How to use
1. Select the target layer folder in the Layer palette.
![]()
2. Open **Auto Action** palette → play **Export Folder to PNG**.
3. In the export dialog, choose save path and filename.
4. **Important:** After export, press **Ctrl+Z (Undo) once** to restore your original canvas size. The action crops the canvas during export; Undo brings it back without losing any layers.
## Tips
- Export one folder at a time. Fixed filenames let you overwrite the same PNG in Unity — references stay intact.
- If an export settings dialog appears, keep **Export alpha channel** checked.
- Works on CSP PRO/EX. Selection-based export (without crop) is EX-only; this action uses Crop + manual Undo instead.
## Known limitations
- Undo is not recorded in Auto Actions — you must undo the crop manually after each export.
- Do not save the .clip file before undoing, or you'll save the cropped canvas.
---
## 日本語 / 中文(简要)
**使い方:** フォルダを選択 → 再生 → PNG保存 → **Ctrl+Zでキャンバス復元**
**用法:** 选中文件夹 → 播放 → 保存 PNG → **Ctrl+Z 恢复画布尺寸**