## それが何をするのか
**1層フォルダ**を**タイトで透明なPNG**としてエクスポートし、ゲーム開発(Unity、Godotなど)用に使えます。
記録されたステップ:
1. 他のすべてのレイヤーを非表示(ソロビュー)
2. 現在のレイヤーから選択を作成する
3. キャンバスをトリミングして選択へ
4. PNGとしてエクスポート(アルファチャネル)
5. 他の層の可視性を回復する
## 使い方
1. レイヤーパレットでターゲットレイヤーフォルダを選択します。
![]()
2. **Auto Action**パレット→開いて再生**フォルダをPNGにエクスポート**。
3. エクスポートダイアログで、セーブパスとファイル名を選択します。
4. **重要:** エクスポート後に**Ctrl+Z(元に戻す)を一度**押すと元のキャンバスサイズが復元されます。このアクションは輸出時にキャンバスをトリミングします。Undoはレイヤーを失わずに元に戻します。
## ヒント
- 一度に1つのフォルダずつエクスポートする。固定ファイル名を使うと、Unity内で同じPNGを上書きできます — 参照はそのまま維持されます。
- エクスポート設定のダイアログが表示されたら、**アルファチャンネルのエクスポート**をチェックマークしてください。
- CSP PRO/EXでの作品。選択ベースのエクスポート(クロップなし)はEXのみです。このアクションは代わりにCrop + 手動Undoを使用します。
## 既知の制限
- 元に戻す動作は自動アクションには記録されません — 各エクスポート後に手動でクロップを元に戻さなければなりません。
- 元に戻す前に.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 恢复画布尺寸**