Skip to content

Instantly share code, notes, and snippets.

View Shmaug's full-sized avatar

Trevor Hedstrom Shmaug

  • United States
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
[AddComponentMenu("Voxels/Volume Renderer")]
[ExecuteInEditMode]
[SelectionBase]
public class VolumeRenderer : MonoBehaviour {
public Material material;
@Shmaug
Shmaug / VoxelTools.cs
Last active September 22, 2018 18:43
using UnityEngine;
using System.IO;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class VoxelTools {
#if UNITY_EDITOR
@Shmaug
Shmaug / AsepriteImporter.cs
Last active September 17, 2022 14:44
Unity aseprite importer using ScriptedImporter. Requires SimpleJSON: https://github.com/Bunny83/SimpleJSON]
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Experimental.AssetImporters;
using UnityEditorInternal;
using System.IO;
using SimpleJSON;
[CustomEditor(typeof(AsepriteImporter))]
public class AsepriteImporterEditor : Editor {