d4rkc0d3r / d4rkAvatarOptimizer

d4rkpl4y3r's VRChat Avatar 3.0 optimizer
MIT License
390 stars 17 forks source link

Feature Request: Improved Exclusion Mechanism for Prefab Variants with d4rk Optimizer #112

Closed jerryzmtz closed 1 month ago

jerryzmtz commented 3 months ago

Current Issue:

I use prefabs to create variants with one avatar base. The original prefab includes the d4rk optimizer as part of it. However, I encounter an issue when I want to exclude a specific game object from the d4rk optimizer. To achieve this, I currently have to unpack the prefab, which is not ideal. When the prefab is intact, the d4rk optimizer always reverts to the original state defined in the prefab.

For instance, if I exclude "Test Object" from the avatar "VF_Test_Soraha Variant," it initially appears to work. However, after changing scenes and returning, the exclusion is lost, and the optimizer reverts to the original configuration where nothing is excluded.

Proposed Improvement:

I propose enhancing the d4rk optimizer to allow exclusions based on shader name or object name. This way, even if the prefab is intact and cannot be directly edited, the exclusions would persist. Or maybe it could be improved to something like modular avatar, where you could edit certain component even if it is prefabed.

image image

d4rkc0d3r commented 1 month ago

3.8.0 should now support exclusions with prefab variants properly.