Search Issue Tracker

Fixed in 2020.2

Planned for 2019.4, 2020.1



Found in




Issue ID




"SendMessage cannot be called during Awake, CheckConsistency, or OnValidate" thrown when loading UI Asset for the first time



To reproduce:
1. Open attached project ("")
2. From the menu bar select AG Tools > Prefab tester
3. In the opened "Prefab Tester" window click any button
4. Observe the Console window

Expected result: No warnings are thrown
Actual result: "SendMessage cannot be called during Awake, CheckConsistency, or OnValidate" warning is thrown

Reproducible in: 2019.4.1f1, 2019.4.8f1, 2020.1.0a2, 2020.1.2f1, 2020.2.0a20
Not reproducible in: 2018.4.26f1, 2019.4.0f1, 2020.1.0a1

1. The issue is only reproducible when loading an asset from the asset database for the first time, so in order to reproduce it again, the project has to be closed and reopened.
2. For issue to reproduce the Asset has to be a nested Prefab.
3. Full warning message:

SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEditor.AssetDatabase:LoadAssetAtPath<UnityEngine.Object> (string)
PrefabScriptSearch:OnGUI () (at Assets/PrefabScriptSearch.cs:41)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in - 2020.2.0b3

Comments (1)

  1. E39c4866df6d94c12e2ded466e8417e8?d=mm


    Oct 07, 2020 09:25

    Will it get solved in 2019.4 LTS? It's really annoying and happens a lot for me

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.