This file contains 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; | |
public enum Colors | |
{ | |
aqua, | |
black, | |
blue, | |
brown, | |
cyan, | |
darkblue, |
This file contains 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; | |
public static class StringLoggingExtensions | |
{ | |
/// <summary> | |
/// Sets the color of the text according to the parameter value. | |
/// </summary> | |
/// <param name="message">Message.</param> | |
/// <param name="color">Color.</param> | |
public static string Colored(this string message, Colors color) |
This file contains 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.IO; | |
using System.Globalization; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class AutoSaveScene | |
{ | |
private const string SAVE_FOLDER = "Editor/AutoSaves"; |
This file contains 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; | |
/// <summary> | |
/// Wrapper class around Unity's built-in Resources class. | |
/// </summary> | |
public class ResourcesEx | |
{ | |
public static UnityEngine.Object Load(string path) | |
{ |
This file contains 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.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// Wrapper around Unity's WWW request class. | |
/// </summary> | |
public class WWWRequest : IEnumerator | |
{ | |
/// <summary> | |
/// The default timeout for requests (in seconds). |
This file contains 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.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// A base class for creating editors that decorate Unity's built-in editor types. | |
/// </summary> | |
public abstract class DecoratorEditor : Editor |
This file contains 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 System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
public class RemoveEmptyFolders | |
{ | |
/// <summary> | |
/// Use this flag to simulate a run, before really deleting any folders. | |
/// </summary> |
This file contains 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.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// Wrapper around Unity's WWW request class. | |
/// </summary> | |
public class WWWRequest : IEnumerator | |
{ | |
/// <summary> | |
/// The default timeout for requests (in seconds). |
This file contains 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 UnityEditor; | |
using UnityEditor.Callbacks; | |
/// <summary> | |
/// Helper class for removing UnityEngine.xml that is included in iOS builds (bug) | |
/// </summary> | |
public static class UnityEngineDocsRemover | |
{ | |
[PostProcessBuild] |
This file contains 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 System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
public class ConsoleWriter : TextWriter | |
{ | |
public override void Write(char value) | |
{ | |
} |
OlderNewer