Skip to content

Instantly share code, notes, and snippets.

View BenHarksdorf's full-sized avatar

Mats Ole Ellenberg BenHarksdorf

View GitHub Profile
@mattvr
mattvr / CurvedPlane.cs
Last active June 5, 2026 09:34
Curved plane for Unity
using UnityEngine;
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class CurvedPlane : MonoBehaviour
{
private class MeshData
{
public Vector3[] Vertices { get; set; }
public Vector2[] Uvs { get; set; }