takeScreenshot

abstract fun takeScreenshot(absolutePath: String)

Creates screenshot in the game. If there's an error, no exception is thrown (swallowed by the game itself). Creates directories that do not exist if necessary. If this method doesn't do anything it's usually a problem with the path or permissions on the filesystem.

Parameters

absolutePath

Absolute path to final image. For example C:/Screenshots/image.png