How to take a screenshot in the Editor?

Is there a way to take a screenshot in the Editor, both in the Scene and the Game views? Thanks.

2 Likes

For the Game View there is this:

http://forum.unity3d.com/viewtopic.php?t=4232

For the Scene View I’m not sure if it’s possible… but there’s always SHIFT-CMD-3 on Macs and “Print Screen” on Windows :wink:

So, I take it there is no native functionality built into the Editor to take screenshots?

The script didn’t really work for me either as it was complaining about a missing Camera.

Thanks anyway.

You give up pretty easy don’t you :wink:

You need to attach the script to the Main Camera in your scene. You also need to create a folder in your Assets folder named “screenshot” (without the quotes). Then you press “k” (again, without the quotes) and a screenshot will be taken of the Game View and saved into the “screenshots” folder you made.

Taking a screenshot from the perspective of the Scene View Camera is possible but I don’t really have time to write the script atm. So instead you could select the Camera, choose “GameObject/Align With View” from the menu, and then run the game and press “k”.

If you need the actual Scene View then “Print Screen” or SHIFT-CMD-3.

Is it that what you are looking for?

[edit: broken link]

Edit: Ah, you want both, sorry.

I don’t think you mean any offense, so none taken, but I was expecting this to be a basic built-in feature, instead of requiring users to look for it through the forums as a script. After all, Unity is supposed to help us focus on making the game, right?

I already did all of this and Unity crashes to the desktop every time I press “k”. Already sent in bug report.

Anyway, I don’t have time to look further into this at the moment and Windows’ Snipping Tool is a usable workaround for now.

EDIT: Found out that Unity will crash if the screenshots folder is either missing or misspelt. However, this method won’t include UnityGUI elements in the capture.

Thanks for the tip. I might take another look at it when I have time.

2 Likes

No offense meant at all. This was your first post to this forum so I’m trying to help. I hate to see people get discouraged so easy when they first start using Unity is all.

As far as built-in functionality it can be argued either way. I’d say it is built-in because there is a function called Application.CaptureScreenshot… but for artists this might not count :wink:

[Edit] - No UnityGUI will not be captured with any of these methods.
[Edit 2] - My bad, CaptureScreenshot gets the GUI … this script form the Wiki will do the trick.

[edit: removed broken link]