本文实例为大家分享了Unity实现全屏截图、Unity实现QQ截图,供大家参考,具体内容如下
全屏截图:要实现的是点击鼠标左键,就实现截图,并且将所截图片保存到本地Assets目录下的StreamingAssets文件夹下面。
代码如下:
using UnityEngine;
using System.Collections;
public class TakeScreenShot : MonoBehaviour {
void Update () {
//点击鼠标左键
if (Input.Ge
本文实例为大家分享了unity实现QQ截图功能的具体代码,供大家参考,具体内容如下
效果:
代码如下:
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine;
using NPinyin;
using System.IO;
public class NewBehaviourscr ipt : MonoBehaviou