Skip to content

Instantly share code, notes, and snippets.

@yuandra
yuandra / 0_reuse_code.js
Created January 24, 2017 15:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yuandra
yuandra / ChangeTextureImportSettings.cs
Created January 5, 2014 05:41
unity extend editor class for texture importing
using UnityEngine;
using UnityEditor;
// /////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Batch Texture import settings modifier.
//
// Modifies all selected textures in the project window and applies the requested modification on the
// textures. Idea was to have the same choices for multiple files as you would have if you open the
// import settings of a single texture. Put this into Assets/Editor and once compiled by Unity you find