Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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:
    19
    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.