Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
public class GazeInput : MonoBehaviour
{
private Ray ray;
private RaycastHit hitInfo;
[SerializeField]
[Tooltip("The root object of all menu items")]
private GameObject menuRoot;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Video;
public class VideoSelection : MonoBehaviour
{
[SerializeField]
private VideoClip videoClip;
private VideoPlayer videoPlayer;
using UnityEngine;
using UnityEditor;
public class InvertedSphere : EditorWindow
{
private string st = "1.0";
[MenuItem("GameObject/Create Other/Inverted Sphere...")]
public static void ShowWindow()
{
@AdrianaVecc
AdrianaVecc / FlippingNormals.shader
Created April 19, 2017 01:00
A shader to invert a sphere's normals in Unity in order to see it from inside out. Useful to create a 360 video player
Shader "Flipping Normals" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType" = "Opaque" }
Cull Off