Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.4.X, 2020.1.X



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. Resolution Note (fix version 2020.2):

    Fixed in - 2020.2.0b3

  2. Resolution Note (fix version 2020.1):

    Fixed in - 2020.1.14f1

  3. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.16f1

Comments (9)

  1. Ronaldinho_WoD

    Sep 14, 2023 01:05

    Unfortunately I'm having the same error, with UNITY version 2022.3.5f1.0.15175
    Revision: 2022.3/release 9674261d40ee

  2. ZeroKuru

    Mar 02, 2022 17:57

    This issue is still present in Unity 2021.2.12f1.

  3. SystemId

    Dec 16, 2021 11:59

    Unity 2020.3.24f1 LTS
    This bug has not been fixed.

  4. ohbado

    Oct 20, 2021 08:22

    It also occurs in 2021.1.25f1.
    The bug has not been fixed.

  5. Hi_ImTemmy

    Sep 26, 2021 07:56

    I'm getting this in 2019.4.18f1 everytime my project loads. There is no stacktrack so no idea what is causing it.

  6. Sliem001

    Feb 08, 2021 10:18

    Still present in 2020.2.3f1

    the bug is not fixed

  7. jashan

    Jan 19, 2021 17:03

    And in Unity 2019.4.18 it's broken again. Filed as
    (Case 1307500) Regression: Warnings SendMessage cannot be called during Awake, CheckConsistency, or OnValidate

  8. jashan

    Nov 22, 2020 11:26

    > Fixed in 2019.4.16f1

    AT LAST! I just updated to 2019.4.15 and once again worked around this by commenting out the offending lines in Scrollbar and Toggle (at least we can edit those files) and am very happy to see that this will apparently be the last time I had to do this ... after having made it a routine for every minor Unity update for the last few months.

  9. AmitloafTotes

    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.