x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to take a screen shot in shipping build

Hello mates, i want to know how to take a screen shot in shipping build. I can use "Shot" or F9 in development build and in editor, but it seem like command console is disable in shipping build, so i guess i have to drag out some function from the engine source code, and i have found function TakeScreenshot inside FEditorViewportClient, but have no idea how should i continue? Would be appreciate if anyone can shed some light into this.

Product Version: Not Selected
Tags:
more ▼

asked Mar 20 '15 at 05:58 AM in C++ Programming

avatar image

CKong
874 27 18 48

avatar image MickCD Jun 11 '15 at 01:02 PM

Have you found any solution since then?

avatar image CKong Jun 12 '15 at 02:57 AM

Instead of packaging my project with shipping build configuration, i package my project with development build configuration, with development build i can use Execute console command node with the command Shot, which will take my screen shot without my UI and store it locally. In short, i give up on taking screen shot in shipping build, sorry mate.

avatar image MickCD Jun 12 '15 at 07:35 AM

I thought about that but we have no other choice but to deliver a shipping version to our players.

avatar image CKong Jun 12 '15 at 09:11 AM

Aye, good luck with that mate, sorry can't help you in this.

avatar image HaxO Aug 03 '15 at 05:48 PM

Publishing a Dev build is a great idea, Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Using console commands for screenshots is kind of strange thing to do when you got full access to engine in C++. USe API refrence to search for functions, then try to find path to access it

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/FViewport/TakeHighResScreenShot/index.html

You can access FViewport of you game view port from UGameViewportClient

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Engine/UGameViewportClient/index.html

which you can access from UEngine which global pointer is GEngine:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Engine/UEngine/GameViewport/index.html

So:

 GEngine->GameViewport->Viewport->TakeHighResScreenShot();
more ▼

answered Aug 03 '15 at 06:52 PM

avatar image

Shadowriver
36.6k 930 169 1111

avatar image HaxO Aug 03 '15 at 07:08 PM

And just attach that to a button press?

avatar image Shadowriver Aug 03 '15 at 07:14 PM

Yes :) but check how it works first, i just find it and didn't use it

avatar image HaxO Aug 10 '15 at 08:21 PM

Could that same thing work with like StartMovieCapture?

avatar image CKong Aug 11 '15 at 03:12 AM

Sorry, but you can't capture movie in shipping build nor development build. There are 2 choice: either use matinee recording and capture from editor, or use 3rd party library and capture your screen in runtime.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question