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
import sys | |
from http.server import SimpleHTTPRequestHandler, HTTPServer | |
class GzipRequestHandler(SimpleHTTPRequestHandler): | |
'''HTTPRequestHandler for gzip files''' | |
def end_headers(self): | |
'''Set Content-Encoding: gzip for gzipped files''' | |
if self.path.endswith('.gz'): |
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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
using System.IO; | |
public class CubemapTextureBuilder : EditorWindow | |
{ | |
[MenuItem("Tools/Cubemap Builder")] |
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
/// @creator: Slipp Douglas Thompson | |
/// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
/// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. | |
/// @why: Because this functionality should be built-into Unity. | |
/// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. | |
/// @intended project path: Assets/Plugins/EditorUtils/HideInNormalInspectorAttribute.cs | |
/// @interwebsouce: https://gist.github.com/capnslipp/8138106 | |
using UnityEngine; |