Cloth applied mesh does not scale when avatar scale is changed
tracked
西明寺弥生
If using a mesh with a Cloth component, it will remain at its original length when changing avatar scaling.
Please respond to this matter or add a setting to deny avatar scaling by Udon.
Photo Viewer
View photos in a modal
Log In
楓(Kaede)
I can confirm that the Unity Cloth scaling issue is reproducible again in the current Unity 6-based VRChat client.
Steps to reproduce:
- Wear an avatar with a Unity Cloth-based skirt.
- Use VRChat's built-in Avatar Height adjustment to change the avatar's size.
- The avatar's body scales correctly, but the Cloth mesh does not scale proportionally, causing the clothing to appear incorrectly sized.
This happens
without switching avatars
.Expected behavior:
The Cloth mesh should scale correctly with the rest of the avatar.
Actual behavior:
The Cloth mesh does not properly reflect the avatar's new scale, resulting in incorrect clothing proportions.
Regression history:
- VRChat 2023.3.2 and 2023.4.2 included fixes for Cloth scaling.
- A related Unity 2022 Open Beta report was marked Complete on April 22, 2024.
- The issue now appears to have returned following the migration to Unity 6.
Previously completed report:
Potentially related issue:
Another tracked report describes how switching from a small avatar to a normal-height avatar can cause a Cloth-based skirt to become significantly shorter, apparently depending on the previously used avatar's height.
These are two distinct reproduction scenarios, but both involve incorrect scaling of Unity Cloth.
Could the development team investigate whether these issues share an underlying cause, and whether the previous Cloth scaling fixes need to be updated for Unity 6?
Thank you for looking into this.
takec(たけし)
In build 1383, it seems that the Cloth component is disabled and then enabled every time the AvatarScale changes.
With this update, scale changes are now reflected correctly.
However, since the Cloth component is initialized based on the shape at the time it is enabled, the intended initialization will not be performed if the Armature is other than the initial Transform.
For example, if you are in a pose other than T pose, or if your bones are deformed by PhysBone etc.
I suggest keeping the Armature at its initial Transform while running AvatarScaling.
g6qwerty
Cloth scaling properly with avatar was working but now with this latest update, its broken and even resetting avatar don't fix it 100% of the time, but then you lose your avatar's scaled height too. and when you reset avatar height it applied the previous scaled cloth.
Photo Viewer
View photos in a modal
A
updated the status to
tracked
DAG-XR
A: Chances are, this could be the reason why. This Canny pertains to particles not scaling, and Tupper said it was a Heirarchy issue.
みみー/Mimy
This phenomenon is likely due to the fact that the Cloth component remembers and manipulates the mesh shape as soon as it is Enabled.
After changing the avatar's scale, when the Cloth component of the animation was momentarily set to Disable and then back to Enable, the Cloth mesh also matched the changed size.
It would be a good idea to provide a trigger for the avatar to know that the scale has changed, or to add a process to automatically recalculate the mesh shape in the Cloth component when the avatar's scale is changed.