d4rkc0d3r / d4rkAvatarOptimizer

d4rkpl4y3r's VRChat Avatar 3.0 optimizer
MIT License
368 stars 16 forks source link

Play Mode broken with 2 avatars in the scene #110

Closed jonnyawsom3 closed 1 month ago

jonnyawsom3 commented 1 month ago

When entering play mode with 2 avatars active in the scene, the first turns invisible stating "(missing mesh)".

It's two copies of the same base avatar, so some meshes and materials are identical between them, VRCFury is also active for GoGoLoco, and removing the optimizer component from the second avatar fixes the missing mesh on the first.

The avatar uploads fine (found out after remaking it again...) so it's only an issue in the editor during Play Mode

d4rkc0d3r commented 1 month ago

So my optimizer doesn't do anything on entering play mode by itself.

Other tools such as VRCFury, AV3Emulator & NDMF however can run the on upload hooks of other tools like my optimizer. If they run that on more than one avatar it will break all but the last that use my optimizer as it only keeps assets for the last optimized model.

I won't fix this and will keep it as is. My advice is to simply not have more than 1 avatar active in a given scene when entering play mode, then everything will be fine.