#ScreenCapture.CaptureScreenshot() only creates one image in for loop?

1 messages · Page 1 of 1 (latest)

summer hedge
#

I'm currently having trouble with writing custom editor window which does taking screenshots in specific order,

but for some reason ScreenCapture.CaptureScreenshot() just generates one image, presumably being the last image on for loop's execution

My assumption is that it somehow recognizes previously generated image within the last for loop execution as 'same' image and tries to replace it with the latest one, but I'm clueless.

wet kettle
#

the docs don't say anything specific about this, but i'd guess the function just schedules a screenshot after it's done rendering - if it did generate multiple images, they'd have the same content

summer hedge
wet kettle
#

you'd need to spread it across multiple frames, so a coroutine or in multiple calls of Update
but im not sure if that'd be reliable, since apparently edit mode doesn't Update every frame
given that you're changing something in the scene, i think it should Update fine in this case? but im not super confident

summer hedge
#

I'm pretty sure it's working now

orchid swan
summer hedge
wet kettle
summer hedge