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.

Question Optimize Mesh Data removes normals even when used in shaders

Discussion in 'Asset Importing & Exporting' started by WonkeeKim, Apr 10, 2022.

  1. WonkeeKim

    WonkeeKim

    Joined:
    Apr 8, 2013
    Posts:
    17
    Hi,
    I enabled 'Optimize Mesh Data' on Player Settings to reduce the build time, and according to the Unity manual, it won't remove normal data if a shader uses it for the model but just realized it removes normals.
    https://docs.unity3d.com/ScriptReference/PlayerSettings-stripUnusedMeshComponents.html

    I still need Optimize Mesh Data to reduce the build size and unwanted normals but want to keep it for some models. My hack way is making it prefab and put it to Resources folder to keep the original data but I can't say this is good for maintenance and causes some history that other developers should remember.

    So my question is, is there a way to keep some mesh components while Optimize Mesh Data is enabled?

    Thanks.
     
unityunity