Skip to main content

Unity Plugin Features

The Daydream Unity plugin brings the full power of StreamDiffusion to your Unity projects.

Real-Time AI Transformations

Transform your camera output in real-time using stable diffusion models:
  • Turn your 3D scene into an anime world
  • Apply painterly effects (oil painting, watercolor)
  • Create cyberpunk or sci-fi aesthetics
  • Generate abstract visualizations
Just enter a prompt and watch your scene transform!

Available Models

ModelSpeedQualityBest For
SD TurboFastestGoodReal-time streaming
SDXL TurboFastBestHigh quality effects
Dreamshaper 8MediumGreatStylized/cartoon
Openjourney v4MediumGreatArtistic styles
Start with SDXL Turbo (stabilityai/sdxl-turbo) for the best balance of quality and speed.

Prompt Tips

Good prompts make great effects. Here are some examples: Style-Based:
  • “anime character, vibrant colors”
  • “oil painting, impressionist, brush strokes”
  • “watercolor illustration, soft colors”
  • “pixel art, retro game style”
Theme-Based:
  • “cyberpunk, neon lights, futuristic”
  • “fantasy, magical, ethereal glow”
  • “vintage photograph, sepia tones”
  • “minecraft screenshot, blocky voxel terrain”
Negative Prompts: Add things to avoid: “blurry, low quality, distorted, ugly”

Parameters Reference

ParameterDescription
PromptText describing the desired visual effect
Negative PromptWhat to avoid: “blurry, low quality, flat”
Model IDDiffusion model to use (stabilityai/sdxl-turbo, etc.)
ResolutionOutput size in pixels (384-1024, rounded to 64px)
Guidance ScaleHow closely to follow the prompt (0.1-20.0)
DeltaStrength of diffusion effect (0.0-1.0)
SeedRNG seed for reproducibility (-1 for random)
Inference StepsNumber of diffusion steps (1-100)
Step ScheduleIntermediate timesteps to apply (default: [11])
Add NoiseAdd noise for next frame (default: true)

Prompt Scheduling

Smoothly transition between prompts using weighted entries:
// In the Inspector, add entries to the Prompt Schedule array:
// Entry 1: "anime style portrait" - Weight: 0.7
// Entry 2: "oil painting"         - Weight: 0.3
This blends 70% anime with 30% oil painting. Choose between linear and slerp interpolation. With slerp, transitions are smooth and organic.
When using prompt scheduling, the simple Prompt field is ignored. Leave the schedule array empty to use the simple prompt.

Seed Scheduling

Control randomness while maintaining smooth transitions:
// In the Inspector, add entries to the Seed Schedule array:
// Entry 1: Seed 42  - Weight: 0.8
// Entry 2: Seed 123 - Weight: 0.2

ControlNets

ControlNets preserve structure from your input video while applying AI effects.

Available ControlNets

TypeWhat It DoesWhen to Use
DepthPreserves 3D structureFaces, scenes with depth
CannyPreserves edgesDetailed outlines, architecture
TilePreserves texturesDetail preservation
OpenPosePreserves body poseFull body shots
HEDPreserves soft edgesOrganic shapes

Default Configuration

The plugin ships with three ControlNets pre-configured for SDXL:
ControlNetModelDefault Scale
Depthxinsir/controlnet-depth-sdxl-1.00.45
Cannyxinsir/controlnet-canny-sdxl-1.00.0 (disabled)
Tilexinsir/controlnet-tile-sdxl-1.00.21

Using ControlNets

Adjust the Conditioning Scale slider for each ControlNet:
  • Lower (0.2-0.4): More creative freedom
  • Medium (0.4-0.6): Balanced (recommended)
  • Higher (0.6-0.8): Strong structure preservation
Each ControlNet also supports Guidance Start/End to control which timesteps it applies to.
Enable only the ControlNets you need. Each one adds some processing overhead.
Use CaseControlNetsStrength
3D sceneDepth0.5-0.6
Detailed environmentsDepth + Tile0.4 each
Architecture/interiorsCanny + Depth0.3-0.4 each

IP Adapter (Style Transfer)

Apply the style of a reference image to your video:
  1. Enable IP Adapter in the Inspector
  2. Set a style image URL — this sets the visual style
  3. Adjust scale (0.0-1.0) — higher = stronger style
  4. Choose type:
    • regular — General style transfer
    • faceid — Face-specific (SDXL only)

Weight Types

The IP Adapter supports multiple weight interpolation types:
TypeEffect
linearDefault, even distribution
style transferEmphasize style over content
compositionPreserve composition from reference
strong style transferMaximum style influence
style and compositionBalance both style and composition
IP Adapter works best with SDXL models. Use style transfer weight type for the strongest visual style influence.

Similar Image Filter

Skip processing when frames are nearly identical to reduce compute:
ParameterDescription
EnableTurn the filter on/off
ThresholdSimilarity cutoff (0-1, default: 0.98)
Max Skip FrameMaximum consecutive frames to skip (default: 10)

Display Options

SettingDescription
Show OverlayShow AI output as fullscreen overlay (default: on)
Show Original PIPShow camera feed in bottom-right corner (default: on)
PIP SizePicture-in-picture size ratio (0.15-0.4)
Set showOverlay to false to disable the built-in overlay and render the AI output on any surface using OutputTexture.

Performance Optimization

Resolution

Start with 512x512 for best performance. You can increase to 768 or 1024 if your connection allows.

Network

  • Stable internet connection required
  • 5+ Mbps upload recommended
  • Wired connection preferred over WiFi

Render Pipeline

The plugin uses a ScreenSpaceOverlay Canvas, which works identically across URP, HDRP, and Built-in pipelines. No extra configuration needed.

Troubleshooting

Choppy Output

  • Reduce resolution
  • Use SD Turbo instead of SDXL
  • Disable unused ControlNets
  • Check network stability

Washed Out Colors

  • Reduce guidance scale
  • Add “vivid colors” to your prompt
  • Enable Depth ControlNet at 0.4-0.5

Too Much Flickering

  • Enable Depth ControlNet
  • Reduce delta value
  • Add “consistent” to your prompt

Next Steps