Skip to content

Instantly share code, notes, and snippets.

View JauntyBear's full-sized avatar

Jaunty Bear JauntyBear

View GitHub Profile
@JauntyBear
JauntyBear / TransformExtensions.cs
Created October 16, 2022 20:00
Unity 3D Transform Extensions
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Object = UnityEngine.Object;
namespace JauntyBear
{
/// <summary>
/// Contains useful extensions for Select.
@JauntyBear
JauntyBear / ExportTerrain2Mesh.cs
Last active January 15, 2025 22:36
Unity Export Terrain to Mesh
using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
using System.IO;
using System.Text;
enum SaveFormat { Triangles, Quads }
enum SaveResolution { Full = 0, Half, Quarter, Eighth, Sixteenth }
@JauntyBear
JauntyBear / RangeInt.cs
Created November 21, 2021 23:02
Unity RangeInt.cs extension
using System;
using UnityEngine;
namespace JauntyBear
{
/// <summary>
/// Provides input for a value range in the editor and various convencience functions to work with that range.
/// </summary>
[Serializable]
public class RangeInt