AssetDatabase.Refresh() for Android?

Hello Game developers,

I’ve been using unity3d for two months for our thesis and i found it very interesting. I encountered this CaptureScreenshot feature and tried it to my project.

The way I do it on my pc is this way:

  1. Use the Application.CaptureScreenshot
  2. Then use AssetDatabase.Refresh() so i can see the output on run time

But then by the time I build the project into an apk, it came to an error which says that this AssetDatabase.Refresh() isn’t compatible to android.

So is there any substitute function or solution on this problem?

Thank you mates :slight_smile:

AssetDatabase only exists in the editor; there’s no use for it in a build. Just save the screenshot somewhere and load it again using standard IO functions.