Unity实现截图功能
代码如下:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UICaptureScreen : MonoBehaviour {
private Texture2D texture_2d_;
private Coroutine cur_co_;
private bool is_shoot_;
public bool IsShoot()
{
return is_shoot_;
}
public Texture2D GetTexture()
{
return texture_2d_;
}