takeScreenshot

fnvoid takeScreenshot(IStr path, bool isUsingLockedResolution = false, bool hasAlpha = false, IStr file = __FILE__, Sz line = __LINE__)

Takes a screenshot and saves it to the given path. Uses the assets path unless the input starts with `/` or `\`, or isUsingAssetsPath is false. Path separators are normalized to the platform's native format.