Skip to content

Instantly share code, notes, and snippets.

View Muhammad-Usman-Amin's full-sized avatar
🏠
Working from home

UsmanERA Muhammad-Usman-Amin

🏠
Working from home
View GitHub Profile
@Muhammad-Usman-Amin
Muhammad-Usman-Amin / MeshDestroy.cs
Created January 31, 2021 18:50 — forked from ditzel/MeshDestroy.cs
MeshDestroy => Put it on a game object with a mesh filter and renderer. Make sure to have read/write enabled on fbx import
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeshDestroy : MonoBehaviour
{
private bool edgeSet = false;
private Vector3 edgeVertex = Vector3.zero;
private Vector2 edgeUV = Vector2.zero;