Image to Image
Basic Usage
Texture2D transformed = await sourceTexture
.ImageToImage("Convert to watercolor painting")
.ExecuteAsync();Input Types
Texture2D + Instruction
Texture2D texture = Resources.Load<Texture2D>("Photo");
Texture2D artistic = await texture
.ImageToImage("Make it look like an oil painting")
.ExecuteAsync();Sprite + Instruction
Sprite sprite = Resources.Load<Sprite>("Character");
Texture2D pixelated = await sprite
.ImageToImage("Convert to pixel art style")
.ExecuteAsync();ImagePrompt
File Input
Common Use Cases
1. Style Transfer
2. Art Direction Changes
3. Quality Enhancement
4. Color Grading
5. Environment Changes
Unity Integration Examples
Example 1: Material Style Switcher
Example 2: Screenshot Filter
Example 3: Texture Variation Generator
Example 4: Environment Time-of-Day System
Example 5: Batch Processing
Instruction Tips
✅ Good Instructions
❌ Bad Instructions
Differences from Inpainting
Feature
Image to Image
Inpainting
When to Use
✅ Use Image to Image for
❌ Use Inpainting for
Provider Support
OpenAI DALL-E
Google Imagen
Best Practices
✅ Do
❌ Don't
Configuration
Error Handling
Performance Tips
Next Steps
Last updated