| English | 日本語 |
This plugin enables a functionality similar to Blender's decimate feature within Unity.
decimate functions are created by using UnityMeshSimplifier[1]
Currently, there is a significant compatibility issue between this Decimater tool and VRCSDK3-AVATAR. The following symptoms have been observed:
-
Abnormal Behavior During Upload:
- When attempting to upload an avatar with Decimater imported into the project, VRCSDK exhibits unexpected behavior.
- Specifically, instead of referencing the prefab in the Hierarchy, VRCSDK generates a new Prefab in the Assets folder named after the Blueprint ID, and attempts to use this for the upload.
-
Error Occurrence:
- As a result of the above behavior, a
FileNotFoundException
occurs, causing the upload to fail.
- As a result of the above behavior, a
- This issue occurs simply by importing the Decimater tool into the project.
- The problem is reproducible even without executing any Decimating operations.
- While the cause is believed to be related to interactions with VRCSDK, addressing the issue is challenging due to inability to access the internal implementations of VRCSDK's
VRCAvatarBuilder
class and theVRC.SDK3.Builder.VRCAvatarBuilder.ExportCurrentAvatarResource
method.
How to Install
-
Download the file from here and extract it into your Assets folder.
-
Next, download the latest release file (Unitypackage) from here and import it to complete the setup.
File Tree Structure
tree have to looks like this
Assets
├─MeshDecimater_Unity
│ ├─Material
│ ├─Shader
│ └─src
└─UnityMeshSimplifier
├─.circleci
│ ├─ProjectSettings
│ └─scripts
├─.github
│ ├─ISSUE_TEMPLATE
│ └─workflows
├─Editor
├─Runtime
│ ├─Components
│ ├─Exceptions
│ ├─Internal
│ ├─Math
│ └─Utility
└─Tests
└─Editor
Select an object with a mesh from the Hierarchy or choose it from the ObjectField to use the plugin.
Similar to Blender, adjust the Decimate Level
and press Apply Decimation
to execute the decimation.
Clicking Revert
will restore the original file.
Please note that Revert will not work after clicking on a different object (the original mesh will remain, so you can replace it to restore).
work confirmed in
・Unity 2022.3.22f1
・Unity 2019.4.31f1