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 System; | |
| using System.Collections; | |
| using UnityEngine; | |
| public struct LerpHelper<T> | |
| { | |
| public T from; | |
| public T to; | |
| public float duration; | |
| public float 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 System.IO; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using UnityEditor.Callbacks; | |
| #if UNITY_IOS | |
| using UnityEditor.iOS.Xcode; | |
| #endif |
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.Collections.Generic; | |
| /// <summary> | |
| /// Tool for spacing objects, primarly in 2d space, can be extended to 3d | |
| /// </summary> | |
| public class ObjectSpacing : EditorWindow | |
| { |
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; | |
| /// <summary> | |
| /// | |
| /// Delay actions. Keeps all actions in a sorted list to minimize overhead. | |
| /// | |
| /// </summary> |
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 GroupSceneObjects | |
| { | |
| [MenuItem("Hello/GroupSelected %g")] | |
| static void GroupSelected(){ | |
| Transform topParent = null; |
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
| //#define ALLOW_UNSAFE //Uncomment this if you need to be in unsafe mode | |
| using System.IO; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System.Text.RegularExpressions; | |
| class ProjectFileMod : AssetPostprocessor | |
| { |
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 UnityEditor; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class CameraListEditor : EditorWindow | |
| { | |
| private List<Camera> cameras = new List<Camera>(); | |
| [MenuItem("Hello/Scene/Camera List")] | |
| public static void Init() |
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; | |
| public class Pool : MonoBehaviour | |
| { | |
| static Pool instance; | |
| static public Pool Instance | |
| { |
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
| /* | |
| Write a graph to a texture | |
| Usage: | |
| void Start(){ | |
| graph = new Graph (512, 256, new Color[]{ Color.red, Color.green, Color.blue }); | |
| graphRenderer.material.mainTexture = graph.texture; | |
| } | |
| 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
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| public class TerrainTexturing : EditorWindow | |
| { | |
| [MenuItem ("Hello/Terrain/Texturing")] | |
| static void OpenEditor () | |
| { | |
| EditorWindow.GetWindow<TerrainTexturing> (); |
OlderNewer