Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0a1
2018.2.0a1
2018.2.11f1
2018.3.0a1
2019.1.0a1
Issue ID
1091076
Regression
No
Model mesh changes applied via AssetProcessor are lost when the project is built
How to reproduce:
1. Open "SampleScene" in AssetPostprocessorTest.zip
2. Open the project panel and select the mesh "SM_Prop_FruitBowl_01" within model prefab "Banana"
3. Observe the inspector preview panel and note the listed UV channels
4. Press play and observe the Game View text output
5. Notice, that UV4 channels are working
6. Start the existing build at Builds/AssetPostprocessorTest.exe or build the player for Windows
7. Observe the player screen showing that the UV4 channel is now missing on the model
Expected: The changes made to UV channels in OnPostprocessModel persist to the build player, if it's not supported, an exception message should be in place.
Actual: Changes made to UV Channels do not persist to the build player.
Reproduced with: 2017.4.15f1, 2018.2.17f, 2018.3.0b12, 2019.1.0a12
Note: When you close and reopen the project after 5th step, you can see that changes made in UV channels are still there, therefore AssetPostprocessor is working as expected.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note:
If "Optimize Mesh Data" is enabled in "Player Settings", mesh channels that are unused by shaders during the build will be removed. See https://docs.unity3d.com/ScriptReference/PlayerSettings-stripUnusedMeshComponents.html and https://docs.unity3d.com/Manual/OptimizingGraphicsPerformance.html