Search Issue Tracker
By Design
Votes
1
Found in
2017.4
2018.4
2019.1.10f1
2019.2
2019.3
2020.1
Issue ID
1170810
Regression
No
Console window is spammed with warning messages when MeshFilter.Mesh is assigned in OnValidate method
How to reproduce:
1. Open the attached 'Meshfilter_Warning.zip' project using the EnvIronman VM (optional) (more information in Edit)
2. Load 'SampleScene' scene
3. In the Hierarchy window select WarningMesh
4. In the Inspector window change any value of Procedural Mesh script
Expected result: no warning messages are printed in the Console window
Actual result: warning messages are spammed in the Console window
Reproducible with: 2017.4.32f1, 2018.4.7f1, 2019.2.3f1, 2019.3.0b1, 2020.1.0a1
Warning message:
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEngine.MeshFilter:set_mesh(Mesh)
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
- Normal from Height Node causes visual artifacts when using ShaderGraph with Android build target
- [Vulkan] [Android] Black screen on some Android devices when using Post Processing and Depth Of Field Mode is set to "Gaussian"
- [GLES] The material isn't rendered when using Graphics.RenderPrimitives
- [TMP][Android] Writing text or adding more emojis after an emoji in the InputField causes the first emoji to disappear and be changed to two question marks when "Hide Mobile Input" is enabled on some Android devices
- [iOS][AppleTV] .dylib plugin is not visible in the Xcode but is added in the project folder
Resolution Note:
The warning is by design. It's because content are changed in OnValidate