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
| //from http://forum.unity3d.com/threads/68402-Making-a-2D-game-for-iPhone-iPad-and-need-better-performance | |
| Shader "Futile/Basic" //Unlit Transparent Vertex Colored | |
| { | |
| Properties | |
| { | |
| _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
| } | |
| Category |
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 System.Collections.Generic; | |
| using System; | |
| using UnityEditor; | |
| using System.Reflection; | |
| [CustomEditor (typeof(UnityEngine.Object),true)] | |
| [CanEditMultipleObjects] |
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 System; | |
| using System.Collections.Generic; | |
| [RequireComponent (typeof(MeshRenderer))] | |
| [RequireComponent (typeof(MeshFilter))] | |
| public class IsoSurface : MonoBehaviour | |
| { | |
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 "----------/Edger" | |
| { | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } | |
| Pass | |
| { | |
| CGPROGRAM | |
| #pragma vertex vert |
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 "Hidden/EdgeDetect" { | |
| Properties { | |
| _MainTex ("Base (RGB)", 2D) = "" {} | |
| } | |
| CGINCLUDE | |
| #include "UnityCG.cginc" | |
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; | |
| using System; | |
| using System.Linq; | |
| using System.Reflection; | |
| using InspectorPair = FGInspectorReflector.InspectorPair; | |
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; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| [AttributeUsage (AttributeTargets.Field,Inherited = true)] | |
| public class ReadOnlyAttribute : PropertyAttribute {} | |
| #if UNITY_EDITOR | |
| [UnityEditor.CustomPropertyDrawer (typeof(ReadOnlyAttribute))] |
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; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| using UnityEditor; | |
| [AttributeUsage (AttributeTargets.Field,Inherited = true)] | |
| public class FilePathAttribute : PropertyAttribute {} | |
| #if UNITY_EDITOR |
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 System; | |
| [RequireComponent (typeof(Rigidbody))] | |
| public class PhysicsFollower : MonoBehaviour | |
| { | |
| public Transform target; | |
| Rigidbody rb; |
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 Shrinkifier : MonoBehaviour | |
| { | |
| public Transform pivot; | |
| public float scale = 1.0f; | |
| void Update () | |
| { |