dobrado76 / Stable-Diffusion-Unity-Integration

Stable-Diffusion-Unity-Integration
GNU Lesser General Public License v2.1
231 stars 41 forks source link

Allow StableDiffusionImage and StableDiffusionMaterial to be executed at runtime #4

Closed albrrt closed 1 year ago

albrrt commented 1 year ago

Hi @dobrado76 thanks for sharing this!

Here is my proposal to allow StableDiffusionImage and StableDiffusionMaterial to execute at runtime.

My use case doesn't need the inspector to force refresh when I update the textures so I only refresh if the application isn't playing.

I added a new editor script called InspectorRefresh.cs that forces the inspector to refresh when returning to edit mode - in case it's needed