Skip to content

Instantly share code, notes, and snippets.

View IJsLauw's full-sized avatar

Laurent de Goede IJsLauw

View GitHub Profile
@IJsLauw
IJsLauw / SnapshotCamera.cs
Created March 31, 2021 11:32 — forked from mickdekkers/SnapshotCamera.cs
Take snapshot images of Prefabs and GameObjects in Unity using Render Textures
using UnityEditor;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
// Object rendering code based on Dave Carlile's "Create a GameObject Image Using Render Textures" post
// Link: http://crappycoding.com/2014/12/create-gameobject-image-using-render-textures/
@IJsLauw
IJsLauw / bootstrap-custom-columns.css
Created October 7, 2020 13:19 — forked from FirstVertex/bootstrap-custom-columns.css
Bootstrap Grid with column widths in 10ths and 8ths
/* custom bootstrap grid by Hugh Anderson */
.col-xs-110 { width: calc(100% / 10) } /* 1/10 */
.col-xs-18 { width: calc(100% / 8) } /* 1/8 */
.col-xs-15 { width: calc(100% / 5) } /* 1/5 */
.col-xs-38 { width: calc(300% / 8) } /* 3/8 */
.col-xs-310 { width: calc(300% / 10) } /* 3/10 */
.col-xs-25 { width: calc(200% / 5) } /* 2/5 */
.col-xs-35 { width: calc(300% / 5) } /* 3/5 */
.col-xs-58 { width: calc(500% / 8) } /* 5/8 */
@IJsLauw
IJsLauw / Screenshotter.cs
Created March 6, 2018 14:50 — forked from bugshake/Screenshotter.cs
Save a screenshot in any resolution from the Unity Editor. Useful for making screenshots higher than your monitor's resolution.
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEditor;
/*
AUTHOR: Stijn Raaijmakers @bugshake