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 System.Collections; | |
namespace Adnc.Cam { | |
public class Camera2DFollow : MonoBehaviour { | |
Vector3 currentVelocity; // Velocity used for damping camera movement | |
[Tooltip("Draws debug lines representing the camera's move logic (easing only)")] | |
[SerializeField] bool debug; |
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; | |
public static class Wm { | |
const string DATABASE_ID_KEY = "MyCustomDatabase"; | |
public static MyScriptableObject _db; | |
public static MyScriptableObject Db { | |
get { | |
if (_db == null && EditorPrefs.HasKey(DATABASE_ID_KEY)) { | |
_db = GetDatabaseFromStorage(); |
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
@echo off | |
REM # Send To Backup Script | |
REM # Author - Matt Little (http://matthewjlittle.com) | |
REM # Adam Caudill (http://adamcaudill.com) | |
REM # | |
REM # To install: | |
REM # | |
REM # (windows 7): | |
REM # Goto Start->Run. Type in shell:sendto |
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/Gamma Image Effect" { | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_SaturationAmount ("Saturation Amount", Range(0.0, 1.0)) = 1.0 | |
_BrightnessAmount ("Brightness Amount", Range(0.0, 1.0)) = 1.0 | |
_ContrastAmount ("Contrast Amount", Range(0.0,1.0)) = 1.0 | |
} | |
SubShader | |
{ |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.IO.Compression; | |
using Ionic.Zip; // this uses the Unity port of DotNetZip https://github.com/r2d2rigo/dotnetzip-for-unity |
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 System.Collections; | |
using System.Collections.Generic; | |
public class EditorWindowExample : EditorWindow | |
{ | |
List<Node> nodes = new List<Node> (); |
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 System.Collections; | |
using UnityEditor; | |
using System.Linq; | |
using System.Collections.Generic; | |
public class SameInspector : EditorWindow | |
{ | |
string searchParameter = string.Empty; | |
string searchType = string.Empty; |
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 System.Collections; | |
using UnityEditor; | |
using System.IO; | |
public class ExportLightprobe | |
{ | |
[MenuItem("Export/Export LightProbe")] | |
static void Export() | |
{ |
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 System.Collections; | |
public class LoadLightmap : MonoBehaviour { | |
[SerializeField] Texture2D[] light, dir; | |
[SerializeField] LightProbes lightprobes; | |
[SerializeField] Cubemap cubemap; | |
// Use this for initialization | |
void Start () { |
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 System.Collections; | |
using UnityEditor; | |
public class CreateAssetBundle { | |
[MenuItem("Export/AssetBundleST")] | |
static void Export() | |
{ | |
System.IO.Directory.CreateDirectory (Application.streamingAssetsPath); |