OpenFitterUnityUIの導入とセットアップ方法を詳しく説明します。
OpenFitterを使用するには、以下の環境が必要です:
- Unity 2022.3以降: Unity Editor(LTS版推奨)
- Windows OS: Blender自動化のためにWindows環境が必要
- インターネット接続: 初回セットアップ時のダウンロードに必要
- 空きディスク容量: 約2GB以上(Blenderと依存関係のため)
- Unity 2022.3 LTS: 最も安定した動作
- Windows 10/11: 64bit版
- 8GB以上のRAM: 大きなモデルを扱う場合
- SSD: 処理速度向上のため
OpenFitterには2つのインストール方法があります。初めての方には 方法1(Unityパッケージ) を推奨します。
最も簡単で推奨される方法です。
- GitHubのリリースページにアクセス
- 最新リリースを選択
OpenFitter.unitypackageをダウンロード
- Unityで対象のプロジェクトを開く
- メニューから
Assets > Import Package > Custom Package...を選択 - ダウンロードした
OpenFitter.unitypackageを選択 - インポートダイアログで、すべての項目にチェックが入っていることを確認
Importボタンをクリック
UnityのメニューバーにTools > OpenFitterが表示されていれば、インストールは成功です。
開発者や、ソースコードから直接インストールしたい場合の方法です。
git clone https://github.com/Mushus/OpenFitterUnityUI.gitまたは、GitHubからZIPファイルをダウンロードして展開します。
- ダウンロードまたはクローンしたフォルダ内の
Assets/OpenFitterフォルダを見つける - Unityプロジェクトの
AssetsフォルダにOpenFitterフォルダをコピー
YourUnityProject/
└── Assets/
└── OpenFitter/ ← ここにコピー
- Unityに戻る
- Unityが自動的にスクリプトをコンパイルします
- コンソールにエラーがないことを確認
インストール後、初めてOpenFitterを使用する前に環境セットアップが必要です。
UnityメニューからTools > OpenFitterを選択します。
初回起動時、またはセットアップが完了していない場合、「環境セットアップ」ステップが表示されます。
以下の3つのコンポーネントが自動的にセットアップされます:
- Blender: 3D処理エンジン(ポータブル版)
- OpenFitter Core: コアフィッティングアルゴリズム
- Blenderアドオン: 必要なBlenderアドオン
- 「すべてインストール」ボタンをクリック
- ダウンロードとインストールが自動的に開始されます
- 進捗バーで進行状況を確認できます
すべてのセットアップ項目に緑色のチェックマークが表示されれば完了です。
症状: セットアップ中にエラーが発生する
解決方法:
- インターネット接続を確認
- ファイアウォールやアンチウイルスを確認
BlenderTools/フォルダを削除して再試行- 管理者としてUnityを実行
症状: 「ディスク容量が不足しています」エラー
解決方法:
- 約2GB以上の空き容量を確保
- 不要なファイルを削除
- 別のドライブにプロジェクトを移動
症状: 進捗バーが長時間進まない
解決方法:
- しばらく(5-10分)待つ
- Unityコンソールでエラーを確認
- Unityを再起動して再試行
- 手動でコンポーネントをダウンロード
自動セットアップが使えない場合や、特定のバージョンを使用したい場合の手動セットアップ方法です。
- Blender公式サイトからポータブル版をダウンロード
BlenderTools/blender/に展開blender.exeがBlenderTools/blender/blender.exeにあることを確認
- open-fitter-coreをダウンロード
BlenderTools/open-fitter-core/に配置
詳細はトラブルシューティングページを参照してください。
OpenFitterをアンインストールする場合:
- Unityプロジェクトの
Assets/OpenFitterフォルダを削除 - Unityが自動的に関連するメタファイルも削除します
プロジェクトルートのBlenderTools/フォルダを削除します(約2GB)。
YourUnityProject/
└── BlenderTools/ ← 削除(オプション)
新しいバージョンのOpenFitterにアップデートする場合:
- 新しい
OpenFitter.unitypackageをダウンロード Assets > Import Package > Custom Package...からインポート- 「Replace」オプションを選択して既存のファイルを上書き
Assets/OpenFitterフォルダを削除- 新しいバージョンの
OpenFitterフォルダをコピー
注意: 設定ファイルが上書きされる可能性があるため、重要な設定はバックアップしてください。
セットアップが完了したら、基本的な使い方ガイドで実際にフィッティングを試してみましょう。
Detailed instructions for installing and setting up OpenFitter.
To use OpenFitter, you need the following environment:
- Unity 2022.3 or later: Unity Editor (LTS version recommended)
- Windows OS: Required for Blender automation
- Internet Connection: Required for initial setup downloads
- Free Disk Space: At least 2GB (for Blender and dependencies)
- Unity 2022.3 LTS: Most stable operation
- Windows 10/11: 64-bit
- 8GB+ RAM: For handling large models
- SSD: For improved processing speed
OpenFitter offers two installation methods. Method 1 (Unity Package) is recommended for first-time users.
The easiest and recommended method.
- Visit GitHub releases page
- Select the latest release
- Download
OpenFitter.unitypackage
- Open your target project in Unity
- Select
Assets > Import Package > Custom Package...from menu - Select the downloaded
OpenFitter.unitypackage - Verify all items are checked in the import dialog
- Click
Importbutton
If Tools > OpenFitter appears in Unity's menu bar, installation was successful.
For developers or those who want to install directly from source code.
git clone https://github.com/Mushus/OpenFitterUnityUI.gitOr download ZIP file from GitHub and extract.
- Find the
Assets/OpenFitterfolder in the downloaded or cloned folder - Copy the
OpenFitterfolder to your Unity project'sAssetsfolder
YourUnityProject/
└── Assets/
└── OpenFitter/ ← Copy here
- Return to Unity
- Unity will automatically compile scripts
- Verify no errors in console
After installation, environment setup is required before first use of OpenFitter.
Select Tools > OpenFitter from Unity menu.
On first launch or if setup is not complete, the "Environment Setup" step will be displayed.
The following three components will be automatically set up:
- Blender: 3D processing engine (portable version)
- OpenFitter Core: Core fitting algorithm
- Blender Add-ons: Required Blender add-ons
- Click "Install All" button
- Download and installation will start automatically
- Progress can be monitored via progress bar
During installation:
- Maintain internet connection
- Do not close Unity
- Do not put PC in sleep mode
Setup is complete when all setup items show green checkmarks.
Symptom: Error occurs during setup
Solution:
- Check internet connection
- Check firewall and antivirus
- Delete
BlenderTools/folder and retry - Run Unity as administrator
Symptom: "Insufficient disk space" error
Solution:
- Ensure at least 2GB free space
- Delete unnecessary files
- Move project to different drive
Symptom: Progress bar doesn't advance for long time
Solution:
- Wait a while (5-10 minutes)
- Check Unity console for errors
- Restart Unity and retry
- Manually download components
Manual setup method for cases where automatic setup is unavailable or specific versions are desired.
- Download portable version from Blender official site
- Extract to
BlenderTools/blender/ - Verify
blender.exeis atBlenderTools/blender/blender.exe
- Download open-fitter-core
- Place in
BlenderTools/open-fitter-core/
See Troubleshooting page for details.
To uninstall OpenFitter:
- Delete
Assets/OpenFitterfolder in Unity project - Unity will automatically delete related meta files
Delete BlenderTools/ folder in project root (approx. 2GB).
YourUnityProject/
└── BlenderTools/ ← Delete (optional)
To update to a new version of OpenFitter:
- Download new
OpenFitter.unitypackage - Import via
Assets > Import Package > Custom Package... - Select "Replace" option to overwrite existing files
- Delete
Assets/OpenFitterfolder - Copy new version of
OpenFitterfolder
Note: Configuration files may be overwritten, so backup important settings.
Once setup is complete, try actual fitting with the Basic Usage guide.