Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by Gesert · Jun 29, 2016 at 07:31 AM · assettexturingrefreshcapturescreenshot

How to use maked screenshot like a texture?

Hi, I doing screenshots like that:

     void Update () {
         if (Input.GetKeyDown (KeyCode.X)) {
             a += 1;
             nazwa = "Screenshot";
             nazwa = nazwa + a.ToString ();
             Application.CaptureScreenshot("Assets/Screenshots/"+nazwa+".png");
             Debug.Log ("foto");
         }
     }

and how can i use maked screenshot to texture the object. Unity doesnt refresing assets in game and texturing doesnt work to. Thanks for help.

Comment
Add comment · Show 2
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 EpiFouloux · Jun 29, 2016 at 07:49 AM 0
Share

I don't understand what your are trying to do.. you want to dynamicly update your texture assets so it changes in game?

avatar image Owen-Reynolds EpiFouloux · Jun 29, 2016 at 01:29 PM 0
Share

I think you do understand what the OP is trying to do. "Screenshot" is confusing the issue. It's really just "any image I find while running."

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by _Yash_ · Jun 29, 2016 at 01:32 PM

 public string url = "file://<your image path>";
     IEnumerator GetTexture() {
         WWW www = new WWW(url);
         yield return www;
         // your texture is in www.texture variable
         renderer.material.mainTexture = www.texture;
     }
Comment
Add comment · 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 Gesert · Jul 01, 2016 at 09:24 AM 0
Share

Thanks. You re very helpfull!

avatar image
0

Answer by TheSurvival · Jun 29, 2016 at 05:34 PM

You press PrntScrn paste it into paint and then simply save it as a .png and drag it onto the assets then onto the object. Easy.

Comment
Add comment · 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 Owen-Reynolds · Jun 29, 2016 at 05:41 PM 0
Share

If you look lower in the question, the screenshot is being taken while the game is running, during Update when the player presses the X key. The Q is about how to use it without stopping the game.

No biggie. It's pretty common that the Q seems so obvious from the title that you forget to read the body, or you don't notice another answer which is a different way of writing what you were going to, etc... .

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

asset refresh 2 Answers

Allow user to download images from game assets 2 Answers

Refresh assets during build. 1 Answer

Remote access of Unity Asset Server? 3 Answers

Asset Server problems. Old updates appearing in updates list after deleting assets 1 Answer


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