Add NDMF Mesh Compression instead of hardcoding guids
This commit is contained in:
parent
18a72e2fda
commit
fee524fe19
12 changed files with 209 additions and 49 deletions
31
MeshCompression/Runtime/MeshCompression.cs
Normal file
31
MeshCompression/Runtime/MeshCompression.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
using UnityEngine;
|
||||
|
||||
public enum RuntimeModelImporterMeshCompression
|
||||
{
|
||||
//
|
||||
// Summary:
|
||||
// No mesh compression (default).
|
||||
Off,
|
||||
//
|
||||
// Summary:
|
||||
// Low amount of mesh compression.
|
||||
Low,
|
||||
//
|
||||
// Summary:
|
||||
// Medium amount of mesh compression.
|
||||
Medium,
|
||||
//
|
||||
// Summary:
|
||||
// High amount of mesh compression.
|
||||
High
|
||||
}
|
||||
namespace gay.lilyy.MeshCompression
|
||||
{
|
||||
public class MeshCompressionConfig : MonoBehaviour, VRC.SDKBase.IEditorOnly
|
||||
{
|
||||
public RuntimeModelImporterMeshCompression windowsCompression = RuntimeModelImporterMeshCompression.Off;
|
||||
public RuntimeModelImporterMeshCompression androidCompression = RuntimeModelImporterMeshCompression.Medium;
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue