private string DrawTakeScreenshotButton(string dataPath, bool enableShot, string suggestedFolder, string suggestedName)
{
// Take Snapshot
_colorStack.Push (enableShot ? ColorPalette.SnapshotButton_ON : ColorPalette.SnapshotButton_OFF);
if (GUILayout.Button (GetContentIcon(IconSet.CAMERA_ICON, TooltipSet.SCREENSHOT_BUTTON_TOOLTIP), _column1)) {
if (enableShot) {
if (string.IsNullOrEmpty (dataPath)) {
SceneMainPanelUtility.EnsureDirectory (suggestedFolder);
}
dataPath = SceneMainPanelUtility.TakeSnapshot (dataPath, _screenShotScale, suggestedFolder, suggestedName);
}
}
_colorStack.Pop ();
return dataPath;
}