Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

SendMessage spam in Unity 2018.3 (maybe before)

Discussion in '2018.3 Beta' started by aurelien-morel-ubiant, Dec 11, 2018.

  1. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    275
    When we tried to access to
    Code (CSharp):
    1. offsetMin
    or
    Code (CSharp):
    1. offsetMax
    from RectTransform, we get this log something like 186 times and sometimes more and more :

    Code (CSharp):
    1. SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    2. UnityEngine.RectTransform:set_offsetMax(Vector2)
    Is it normal that RectTransform variable trigger this in OnValidate() ? Cause we never saw it in 2017.

    Thanks.
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Yeah, it's okay. UT probably added some event to that property.
    There's not much you can do with it afaik.
    SendMessage warning spam in OnValidate is one of those things I'd like to be removed competely from the Unity. Not so much possible though.