用Unity2019.4.10写的基于AVPro视频播放器源码,压缩包打包的是Asset下的所有文件。使用的插件是AVPro Video 1.10.0.unitypackage,可以在我的资源里下载(https://download.csdn.net/download/jgp504605231/13606486)。源码功能包括,点击打开按钮手动选择手机内部视频文件进行播放,带基本功能控件。这里发不了截图,不然弄一张在手机上打开的截图。有问题可以留言交流。
本文实例为大家分享了Unity实现截图功能的具体代码,供大家参考,具体内容如下
一、使用Unity自带API
using UnityEngine;
using UnityEngine.UI;
public class ScreenShotTest : MonoBehaviour
{
public RawImage img;
private void Update()
{
//使用ScreenCapture.CaptureScreenshot
if (Input.Ge
在游戏开发和软件开发中,经常需要截图的功能,分带UI的截图和不带UI的截图功能。代码如下:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class ScreenShotForCamera{
public static void CaptureScreen(string _path = null)
{
if (_path == null)
_pat
本文实例为大家分享了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