This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int[] myArr = new int[3]; | |
public float delay = 5.0f; | |
private float lastDebugTime; | |
private int currIndex; | |
// For keeping track of the index in a foreach loop | |
private float foreachIndex; | |
private void Update() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/CameraFeedShader" | |
{ | |
Properties | |
{ | |
_MainTex ("Main Texture", 2D) = "white" {} | |
_TintColor ("Tint Color", Color) = (1,1,1,1) | |
_SecondaryTex ("Secondary Texture", 2D) = "black" {} | |
_ScrollSpeed ("Scroll Speed", Float) = 8.0 | |
_NoiseTex ("Noise", 2D) = "white" {} | |
_NoiseScrollSpeed("Noise Scroll Speed", Float) = 8.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/DynamicWater" | |
{ | |
Properties | |
{ | |
_Tint("Tint", Color) = (1, 1, 1, .5) | |
_MainTex("Main Texture", 2D) = "white" {} | |
_HighlightTex ("Highlight Tex", 2D) = "black" {} | |
_NoiseTex("Extra Wave Noise", 2D) = "white" {} | |
_FoamColor("Foam Color", Color) = (1,1,1,1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using Object = UnityEngine.Object; | |
using System; | |
// DESCRIPTION | |
// This is a Unity editor script that allows you to view and edit all your Scriptable Objects in one Editor Window | |
// INSTRUCTIONS | |
// In Unity, place this file in an Editor folder. |