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.Collections; | |
using System.Text; | |
namespace System | |
{ | |
/// <summary> | |
/// Tuple. | |
/// </summary> | |
public static class Tuple |
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
//Original Author (gracefully borrowed): https://gist.github.com/benblo/10732554 | |
//#define DEBUG_EDITORCOROUTINE | |
using System.Collections; | |
using UnityEditor; | |
namespace Sacristan.EditorExtensions | |
{ | |
public class EditorCoroutine | |
{ |
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.Collections.Generic; | |
using System.Threading; | |
using UnityEditor; | |
/// <summary> | |
/// Provides a simulated multithreading manager for invoking callbacks on the main unity thread. | |
/// </summary> | |
public static class ContinuationManager |
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
#version 430 core | |
in vec2 UV; | |
layout(binding = 0) uniform sampler2DMS texColor; | |
layout(binding = 1) uniform sampler2DMS texDepth; | |
const int samples = 8; | |
float samplesInverted = 1.0 / samples; |
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
#pragma once | |
#include <QString> | |
#include <QObject> | |
#include <QDebug> | |
#ifndef SPACER | |
# define SPACER " " | |
#endif |
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 Nancy; | |
using Nancy.ViewEngines; | |
namespace Web.Modules | |
{ | |
public static class ModuleExtensions | |
{ | |
public static string RenderRazorViewToString(this NancyModule module, string viewName, object model) | |
{ |
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
// Used to generate Texture Array asset | |
// Menu button is available in GameObject > Create Texture Array | |
// See CHANGEME in the file | |
using UnityEngine; | |
using UnityEditor; | |
public class TextureArray : MonoBehaviour { | |
[MenuItem("GameObject/Create Texture Array")] | |
static void Create() |
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
// | |
// Mono.CSharp CSharpCodeCompiler Class implementation | |
// | |
// Authors: | |
// Sean Kasun (seank@users.sf.net) | |
// Gonzalo Paniagua Javier (gonzalo@ximian.com) | |
// | |
// Copyright (c) Novell, Inc. (http://www.novell.com) | |
// |
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
// For Unity versions newer than 2017.1 | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class DetectPlayModeChanges { | |
static DetectPlayModeChanges() { | |
EditorApplication.playModeStateChanged += OnPlayModeStateChanged; | |
} |
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 UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(DefaultAsset))] | |
public class CustomAssetInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ |
OlderNewer