Skip to content

Instantly share code, notes, and snippets.

@HChengLin
HChengLin / HeightmapToMesh.cs
Created July 3, 2019 13:24 — forked from staggartcreations/HeightmapToMesh.cs
Convert heightmap to mesh
// Staggart Creations
// http://staggart.xyz
using UnityEngine;
[ExecuteInEditMode]
public class HeightmapToMesh : MonoBehaviour
{
public MeshFilter meshFilter;
public Texture2D heightmap;