Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

"SendMessage cannot be called during Awake, CheckConsistency, or OnValidate" - can we suppress?

$
0
0
Since we updated to a newer version of Unity, we've been getting this warning spammed to the console (and our log) hundreds of times. We are never calling SendMessage, and we are only running the code causing this warning when Application.isPlaying is false. Our OnValidate is calling transform.Find, Resources.Load, GetComponent, and setting MeshRenderer.sharedMaterial, so maybe one of those is calling SendMessage in the background (likely setting sharedMaterial if I were to guess)....

"SendMessage cannot be called during Awake, CheckConsistency, or OnValidate" - can we suppress?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>