playMaker

Author Topic: SendMessage cannot be called during Awake  (Read 1068 times)

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 256
SendMessage cannot be called during Awake
« on: July 03, 2023, 12:04:08 PM »
This probably has nothing to do with Playmaker but still thought I would ask since I have honestly no clue where it actually is coming from.

I updated to Unity 2022 and get now 999+ warnings in console every time I go into playmode. This is the warning:

Code: [Select]
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate (Canvas: OnRectTransformDimensionsChange)
UnityEngine.UI.InputField:OnValidate ()

I get it on literally every UI element in the hierarchy. For canvases, for buttons, for images.

They have no scripts attached in 99% of the cases, meaning no FSMs either so it's not something I am doing in OnValidate.

But since these are UI images I guess it does have something to do with input handling and maybe, just maybe, Playmaker is doing something in OnValidate to get all UI elements?

Any help is appreciated.