# WebUIのインストール・アンインストールについて

## WebUIのインストール

WebUIはUnity上Preferences > StableDiffusion For Unityから設定することが出来ます。

<figure><img src="/files/DBfeZtuNn155uVJK0UC3" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="119">タイプ</th><th width="627.3333333333333">内容</th></tr></thead><tbody><tr><td>Internal</td><td>デフォルト。StableDiffusionのこだわりがない場合こちら</td></tr><tr><td>External</td><td>自分でインストール・カスタマイズしたStableDiffusionを使用したい場合<br>（またはCドライブ以外にインストールしたい場合）<br>WebUIのwebui-user.batをAPIモード設定しパスを指定してください。</td></tr></tbody></table>

### Internalの設定

Internalの場合、初回StartServerで自動的にWitchpotカスタムのStableDiffusionがCドライブユーザーフォルダ内にインストールされます。

### Externalの設定

自分の環境下にインストール・設定済みのWebUI（AUTOMATIC1111ベースのもの）がある場合そのWebUIを使用することが出来ます。

使用したいWebUIのwebui-user.batを下記のように編集しAPIモードに設定します

```bat
set COMMANDLINE_ARGS=--api
```

Unity上のPreferencesの設定よりwebui-user.batのパスをExternal Bat Pathに指定してください。

## WebUIのアンインストール

自動でインストールされるStableDiffusionWebUIのアンインストールは下記の方法で行ってください

* Unityのメニュー上Witchpot > Utility > Uninstall Dependencies

<div align="center"><figure><img src="/files/YeFeIHAsPvZHZPKg01cI" alt=""><figcaption></figcaption></figure></div>

※この操作で行わずC:ドライブ内で直接WebUIを削除すると次回以降のインポート時にWebUIが自動的にインストールされません

## WebUIの手動インストール

WebUIが自動でインストールされていない場合

Unityのメニュー上Witchpot > Utility > (Re)Install Dependencies

より手動でインストールを行ってください。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.witchpot.com/settoappu/webuinoinsutruaninsutrunitsuite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
