Skip to content

Instantly share code, notes, and snippets.

@andyzhshg
andyzhshg / RoundMeshMaker.cs
Created June 17, 2024 11:25
Build a Perfect Round Cornered Cube in Unity with Code
using System.Collections.Generic;
using UnityEngine;
public class RoundMeshMaker
{
private readonly float size;
private readonly float radius;
private readonly int cornerDivide;
readonly List<(Vector2, Vector2)> faceUVs;