Skip to content

Instantly share code, notes, and snippets.

@AtelierOfUnity
AtelierOfUnity / WebCam_2DTex.cs
Created January 21, 2015 01:36
WebCamTexture+ScreenShotで擬似カメラ(GUITexture版)
using UnityEngine;
using System.Collections;
public class WebCam_2DTex : MonoBehaviour {
public int camWidth_px = 1280;
public int camHeight_px = 720;
Vector2 pivotPoint;
int pivot_x;
@AtelierOfUnity
AtelierOfUnity / ScreenShot.cs
Created January 19, 2015 23:41
WebCamTexture+ScreenShotで擬似カメラ
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.IO;
public class ScreenShot : MonoBehaviour {
public void Shot(){
string format = "yyyy-MM-dd-HH-mm-ss";