Meshia — drcain fork

English

Mesh simplification tool/library for Unity, VRChat.

Based on Unity Job System, and Burst. Provides fast, asynchronous mesh simplification.

Can be executed at runtime or in the editor.

Installation

VPM

This independent fork is maintained by drcain1. Add its VPM repository to VCC or ALCOM and install the stable release. The fork repository distributes io.github.drcain1.meshia.mesh-simplification. Install only one Meshia variant per project. See the migration and distribution guide before switching.

How to use

NDMF integration

Attach MeshiaMeshSimplifier to your models.

You can preview the result in EditMode.

Use from C#


using Meshia.MeshSimplification;

Mesh simplifiedMesh = new();

// Asynchronous API

await MeshSimplifier.SimplifyAsync(originalMesh, target, options, simplifiedMesh);

// Synchronous API

MeshSimplifier.Simplify(originalMesh, target, options, simplifiedMesh);

日本語

Unity、VRChat向けのメッシュ軽量化ツールです。 Unity Job Systemで動作するため、Burstと合わせて高速、かつ非同期で処理ができるのが特徴です。 ランタイム、エディターの双方で動作します。

インストール

VPM

このフォークの VPM リポジトリ を VCC または ALCOM に追加し、安定版をインストールしてください。上流版と同時にインストールしないでください。移行手順と公開状況 を参照してください。

使い方

NDMF統合

NDMFがプロジェクトにインポートされている場合、MeshiaMeshSimplifierが使えます。 エディターで軽量化結果をプレビューしながらパラメーターの調整ができます。

C#から呼び出す


using Meshia.MeshSimplification;

Mesh simplifiedMesh = new();

// 非同期API

await MeshSimplifier.SimplifyAsync(originalMesh, target, options, simplifiedMesh);

// 同期API

MeshSimplifier.Simplify(originalMesh, target, options, simplifiedMesh);