Skip to content

Instantly share code, notes, and snippets.

@Minimally
Minimally / CBAudioImport.cs
Created May 14, 2014 19:32
Unity Editor script to customize importing audio with various configurations.
using UnityEditor;
using UnityEngine;
/// <summary>
/// Modify the way audio is imported into Unity
/// Throw this script in the Editor folder.
/// Place audio files in folders named with specific keywords listed below to automate how they are imported.
/// Check Unity reference for details and such
/// </summary>
public class CBAudioImport : AssetPostprocessor
@Minimally
Minimally / PoolItExtension.cs
Created May 8, 2014 22:27
Unity3d pooling using Extensions on GameObject.
using UnityEngine;
using System.Collections.Generic;
public static class PoolItExtension
{
private static Transform pool;
private static Transform Pool { get { return (pool == null) ? pool = new GameObject(" Pool It!").transform : pool; } }
private static Dictionary<GameObject, List<GameObject>> container = new Dictionary<GameObject, List<GameObject>>();
@Minimally
Minimally / LayerMenu.cs
Created April 19, 2014 19:52
Unity Editor script for filtering layers via keyboard
using UnityEditor;
using UnityEngine;
public static class LayerMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */
#region Layer Visibility
@Minimally
Minimally / ActiveMenu
Last active August 23, 2018 20:58
Unity3d class to quickly set GameObjects active/inactive with s and h
using System.Collections;
using UnityEditor;
using UnityEngine;
public static class ActiveMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */