Skip to content

Instantly share code, notes, and snippets.

View mikelortega's full-sized avatar
🚴‍♂️
beti ikasten

Mikel Ortega mikelortega

🚴‍♂️
beti ikasten
View GitHub Profile
@vwrs
vwrs / unity-webgl-server.py
Created March 12, 2023 07:48
A simple python server for a Unity WebGL build
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'):
@RemyUnity
RemyUnity / CubemapTextureBuilder.cs
Created April 9, 2020 09:03
Unity utility to convert 6 texture to a single cubemap texture
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")]
@capnslipp
capnslipp / HideInNormalInspectorAttribute.cs
Last active April 12, 2022 09:39
Unity HideInNormalInspector attribute
/// @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;