Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'screen shot'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 2 results

  1. using UnityEngine; using System.Collections; public class ScreenShotCapture : MonoBehaviour { void Awake(){ DontDestroyOnLoad(this); } void Update(){ if(Input.GetKey (KeyCode.F10)){ string screenshotIMGName = System.DateTime.Now.ToString(); string subString = screenshotIMGName.Replace ('/','_'); string gypsy = subString.Replace(':','_'); Debug.Log ("Screen shot captured: " +gypsy + ".png"); Application.CaptureScreenshot(gypsy+ ".png"); } } } If you like it, please gives it a like por favor. Anyways, I've just been very bored lately so I decided to quench my boredem... If only for about 2 and a half minutes...
  2. This is a kinda advanced screenshot capture system i made. using UnityEngine; using System.Collections; // The MIT License (MIT) // // Copyright (c) 2014 David Wieser // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"), to deal in the Software without restriction, // including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, // subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE // OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // remember that! // // Skype: davidwieser149 || My Website: david.wieser.at || Invidec.net public class ScreenshotCapture : MonoBehaviour { public enum Path { PictureFolder, ApplicationFolder, Custom } public Path path = Path.Custom; public string customPath = "C:/"; public enum Timestamp { none, yyyyMMddHHmmss, yyyyMMddHHmm, yyMMddHHmm, yyyyMMddhhmmsstt, yyyyMMddhhmmtt, yyMMddhhmmtt, yyyy_MM_dd_HH_mm_ss, yyyy_MM_dd_HH_mm, yy_MM_dd_HH_mm, yyyy_MM_dd_hh_mm_ss_tt, yyyy_MM_dd_hh_mm_tt, yy_MM_dd_hh_mm_tt, MMddyyyy_hhmmsstt, MMddyyyy_HHmmss, MM_dd_yyyy_hh_mm_ss_tt, MM_dd_yy_hh_mm_tt, custom } public Timestamp timestamp = Timestamp.custom; public string customTimestamp = ""; // yyyyMMddhhmmssffff public string namePrefix = "Capture_"; // Before the timestamp // Example "Gametitle_" public string nameSuffix = ""; // After the timestamp public KeyCode key; public KeyCode altKey; private string GetTimestamp () { System.DateTime dateTime = System.DateTime.Now; if (timestamp == Timestamp.custom) { return dateTime.ToString(customTimestamp); } else if (timestamp != Timestamp.none) { return dateTime.ToString(timestamp.ToString()); } else { return ""; } } private string GetPath () { if (path == Path.ApplicationFolder) { return Application.dataPath + "/"; } else if (path == Path.PictureFolder) { return System.Environment.GetFolderPath (System.Environment.SpecialFolder.MyPictures) + @"\"; } else { return customPath; } } public void Capture () { string fullPath = GetPath() + namePrefix + GetTimestamp() + nameSuffix + ".png"; Application.CaptureScreenshot (fullPath); Debug.Log ("Capured Screenshot: "+ fullPath); } void Update () { if (Input.GetKeyDown (key) || Input.GetKeyDown (altKey)) { Capture(); } } }
×
×
  • Create New...