• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
Question by elixir-bash · May 08, 2012 at 10:33 AM · texturescreenscreenshotqcar

Preview of screenshot in unity

Hi , im saving the screen shot using Application.CaptureScreenshot() .After saving i throw two options share /retake.All these works fine but im not finding a way to show the screenshot preview to the user.

Once user clicks "capture" button , i'd like to show either the stored screenshot(from persistantdatapath) or just freeze the entire screen.Could you help me out in this?

Thank you Mukundan

Comment

People who like this

0 Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image centralvox · Apr 20, 2013 at 07:29 AM 0
Share

Hi elixir.bash ,

i was looking for the same , did u had a chance to resolve the issue? infact it is for AR too

avatar image elixir-bash · Apr 21, 2013 at 12:08 PM 0
Share

Hey centralvox ,could you please tel me what issue are yu facing ..

avatar image Paulius-Liekis · Apr 22, 2013 at 08:14 AM 1
Share

And don't post questions as answers. There are comments for that.

2 Replies

  • Sort: 
avatar image
Best Answer

Answer by fherbst · May 14, 2012 at 08:18 AM

Instead of holding the game, you can load your screenshot into a texture and show it to the user. Use the WWW class. (Resource-wise, if thats critical in your application, you shouldn't use Application.CaptureScreenshot if you want to show the image afterwards, but use something like this where you already have the data and don't need to load it again).

 IEnumerator TakeScreenshotAndLoadItIntoTexture(string filename) {
   Application.CaptureScreenshot(filename);
 
   WWW www = new WWW("file://" + filename);
   while(!www.isDone)
     yield return null;
 
   myPreviewObject.renderer.material.mainTexture = www.texture;
 }

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elixir-bash · May 15, 2012 at 02:45 PM 0
Share

This is exactly what i did man.. i made use of www and GUI.DrawTexture in my OnGui..

avatar image

Answer by Paulius-Liekis · May 08, 2012 at 12:16 PM

Setting Time.timeScale to 0 should freeze your game (as long as you're using deltaTime properly).

Comment

People who like this

0 Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elixir-bash · May 14, 2012 at 05:44 AM 0
Share

Thanks for replying Paulius.. i'm not using deltaTime here.. This app im developing has a camera feed with some augmentation. will that information help me in getting a solution?

avatar image adikecapan · Aug 08, 2019 at 02:08 AM 0
Share

i think it wont pause the camera device (WebCam)

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Application.CaptureScreenshot vs ReadPixels EncodeToPNG 1 Answer

Colors are wrong in in-game screenshot 1 Answer

Is it possible to call texture from a ScreenShot into GUI Texture In Unity Build? 1 Answer

Delta event out of Editor Problem 4 Answers

How to Render to Fullscreen Texture pixel perfect 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges