Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

All clothes dissapear in build.

Discussion in 'Editor & General Support' started by JohnSmith1915, Jul 18, 2018.

  1. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Hi, when i make a build (Unity 2018.2.0f2, IL2CPP, Windows 7) all clothes dissapear, in the editor works fine, no errors or warnings, thanks.
     
  2. John_Vella

    John_Vella

    Joined:
    Nov 26, 2014
    Posts:
    114
    You're going to have to give us a bit more to work with, John. What assets are you using?
     
  3. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Really i not use an asset in special, for this is rare, the same project build perfect in all previous versions of Unity 2017 and 2018.1 but in this last release the clothes not appear in the build. My first suspicion is that the cause is the Ciconia double side shader that i use in the clothes but i try replace this with the standard shader and occurs the same thing.
     
    Last edited: Jul 18, 2018
  4. DiegoR

    DiegoR

    Joined:
    Oct 31, 2012
    Posts:
    33
    Same thing here. But it seems to be related to the SkinnedMeshRenderer, beacause I removed the Clothes component and the mesh dissapeared anyway (just in the build for iOS and Android but not in editor running the game)
     
  5. DiegoR

    DiegoR

    Joined:
    Oct 31, 2012
    Posts:
    33
    Just to add more information:

    I am using Unity 2018.2.1f1. Making a soccer game that has nets in the goals. The nets are made of clothes. Works prefectly on Unity 2017.x and 2018.1.x but on Unity 2018.2.1f1 the mesh of the net dissapear running the game on iOS and Android (in editor still works ok).

    First I think that it was related to the material, so I changed to a standard material (no transparent and no double sided): same problem.
    Then I tried removing the component Cloth component and leave just the SkinnedMeshRenderer: same problem.

    I will try to isolate the problem and find more information about it.
     
  6. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    I found the error, if you use colliders then the meshes used like clothes need be marked like write/read meshes.
     
    Last edited: Aug 8, 2018
    sadjay, luks3256 and pachermann like this.
  7. dechriss

    dechriss

    Joined:
    Feb 25, 2019
    Posts:
    3
    I just ran into the same issue. making the mesh read/write did indeed solve it.
    Thank you so much!
     
  8. pachermann

    pachermann

    Joined:
    Dec 18, 2013
    Posts:
    130
    thank you for this tip! work like a charm!
     
  9. Blarp

    Blarp

    Joined:
    May 13, 2014
    Posts:
    267
    thanks, very great tip!
     
  10. alecruz097

    alecruz097

    Joined:
    Jul 20, 2015
    Posts:
    4
    Wow! Life saver! Changing it to Read Write did work. THANK YOU!! From the bottom of my heart :)