Search Issue Tracker

Fixed in 2017.2.0f3

Votes

0

Found in

2017.2.0a2

Issue ID

930703

Regression

Yes

SendMessage cannot be called during Awake, CheckConsistency, or OnValidate prevents UI from showing

uGUI

-

SendMessage cannot be called during Awake, CheckConsistency, or OnValidate prevents UI from showing

To repro:
1. Open project attached (or import uMMORPG project).
2. Press Play and you'll get errors in log.

Actual result: warnings in log
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEngine.UI.Slider:OnValidate()

Expected result: No warnings in log.

In 2017.1.0f3 works with no warnings.
In 2017.2.0a2 - b3 warnings appear.

Comments (23)

  1. elgawarsha

    Nov 22, 2020 07:50

    I've figured this issue out. At least in Unity 2020.1.11f1

    Basically the children in the Slider aren't set as prefabs. I had to unpack the canvas parent of the slider, as well as the slider itself, and then make all the slider children prefabs, then re-prefab the slider and canvas. If this works for anyone else please post a comment to confirm.

  2. adefilippis

    Aug 06, 2019 18:14

    Not sure what was fixed in 2017.2.0f3.
    In 2017.4.26f1, this warning still appears in all GetComponent<MeshFilter>() statements called in Awake()

  3. PixelSquad

    Jul 12, 2019 11:35

    I get it in 2019.1.9f1 when loading a prefab containing sprites.

  4. Hoglet

    Jul 07, 2019 23:24

    Still present in Unity 2019.1.8 when adding value to some properties in OnValidate

  5. cmdexecutor

    May 27, 2019 12:13

    SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    UnityEngine.MeshFilter:set_sharedMesh(Mesh)

    The same on 2019.1.0f2

  6. tigme

    Apr 01, 2019 08:39

    Also have this issue on 2018.3.10f1

  7. yourfriendninjarinplays

    Mar 24, 2019 13:12

    I Have this problem when i change the value in my Slider

  8. ilkeryasin

    Feb 17, 2019 14:17

    also i have same issue
    unity version = 2018.3.6f1

  9. DanStreaman

    Feb 16, 2019 02:53

    I am on 2018.3.4f1 and while doing:

    meshFilter.mesh = new_mesh;

    ...during OnValidate() I get the following warning:

    "SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    UnityEngine.MeshFilter:set_mesh()"

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.