Skip to content

Instantly share code, notes, and snippets.

@theta360developers
theta360developers / followView.cs
Created November 17, 2017 01:03
Follow gaze in Unity for THETA 360 images
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class followView : MonoBehaviour {
bool mouseDown = false;
float mouseX;
float mouseY;
@theta360developers
theta360developers / WebCamDetect.cs
Created May 12, 2017 00:17
Simple Unity script to test for WebCam. Using with RICOH THETA S in live streaming mode for 360 videos. Video tutorial is here https://youtu.be/72Qst55uZEA
using UnityEngine;
public class WebCamDetect : MonoBehaviour
{
void Start()
{
WebCamDevice[] devices = WebCamTexture.devices;
Debug.Log("Number of web cams connected: " + devices.Length);