> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/other/ai-service-integrations/open-ai-chatgpt-and-dall-e.md).

# Open AI (ChatGPT & Dall-E)

v1.0

Make use of ChatGPT and Dall-E directly in the Unity Editor. Features include a stand alone Editor window, as well as context menu options on String, Texture2D, and Sprite fields, Lists, and Arrays.

## Dall-E Examples

<div><figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FSJCMicfQPe16PtrJPNEx%2FVideoGameUITrans_2025-07-09_0002.png?alt=media&amp;token=acec4636-cf34-43ad-b03c-0e1268397cb3" alt=""><figcaption></figcaption></figure> <figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2F0DZ9Dl2WvKoA4irNLXzR%2FWatercolorpainting_2025-07-09.png?alt=media&amp;token=139fc14b-7b08-4dec-98b3-b7c322cceea2" alt=""><figcaption></figcaption></figure> <figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2F47noYDcdcSGxn1uAk28O%2FCharacterPortrait_2025-07-09_0005.png?alt=media&amp;token=122afc8b-ae9d-4323-bddc-caab9b5be9f4" alt=""><figcaption></figcaption></figure> <figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FIBcv23XkeFIETC49H5Xx%2FVideoGameUITrans_2025-07-09_0003.png?alt=media&amp;token=81b064f1-1b2a-427d-95d3-767f15aa8252" alt=""><figcaption></figcaption></figure></div>

Dall-E can create all sorts of images for your project. Try including "Transparent background"!

{% content-ref url="/pages/JHOa3ASRynkuwC8AOcyo" %}
[ChatGPT](/magic-pig-games/other/ai-service-integrations/open-ai-chatgpt-and-dall-e/chatgpt.md)
{% endcontent-ref %}

{% content-ref url="/pages/CPtagcYTVl9EKiJTh01X" %}
[Dall-E](/magic-pig-games/other/ai-service-integrations/open-ai-chatgpt-and-dall-e/dall-e.md)
{% endcontent-ref %}

## Use with AudioClip fields, lists, and arrays

Right click on the label of any `String` , `Sprite`, or `Texture2D` field, including individual items within a `list` or `array`. You can also click the array/list label to focus on the entire list.

ChatGPT options will exist for `String` fields, while "Dall-E Image Generator" will be present for `Sprite` and `Texture2D` fields.

<div><figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FPdcvDtGrXKRpfCXVaT7h%2FScreenshot%202025-07-11%20at%205.30.18%E2%80%AFPM.png?alt=media&amp;token=1b19abad-c204-4183-95e0-bbb9a14065bf" alt=""><figcaption></figcaption></figure> <figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2Fb5Zgl6Q1hqZIloonyfjz%2FScreenshot%202025-07-11%20at%205.30.29%E2%80%AFPM.png?alt=media&amp;token=2b0b3ae4-0d2c-407c-91e2-8c200f9ae31c" alt=""><figcaption></figcaption></figure></div>

When you open the window from a field, you will see additional information in the generator window.

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FLIHN3e44MYyu6SiYJLqj%2FScreenshot%202025-07-11%20at%205.31.34%E2%80%AFPM.png?alt=media&amp;token=40553b80-c908-4591-97c2-a2f479556a18" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2F9dRYiJbFZJlASKyImBTe%2FScreenshot%202025-07-11%20at%205.31.50%E2%80%AFPM.png?alt=media&amp;token=167f064a-68b6-4615-92e7-ca1398e23c17" alt=""><figcaption></figcaption></figure>

The content generatoed will automatically be added to the field selected.

When you select a List or Array, you'll have the option to replace the list, or append the new content to the list.

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2Fn5nLe0zKu9dghFtt4FcE%2FScreenshot%202025-07-11%20at%205.33.47%E2%80%AFPM.png?alt=media&amp;token=0cd07057-a89f-4858-8c2f-76ac5f96efbc" alt=""><figcaption></figcaption></figure>
