Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question MissingMethodException: UnityEngine.RectTransform::get_anchorMax_Injected

Discussion in 'Android' started by Peter77, Jan 13, 2022.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    2019.4.20f1, Android OS 11 / API-30, Device ZTE/ZTE 8030/P963F06, ARM64, IL2CPP

    Unity Cloud Diagnostics logged the following error:
    Code (CSharp):
    1. MissingMethodException: UnityEngine.RectTransform::get_anchorMax_Injected(UnityEngine.Vector2&)
    2. UnityEngine.RectTransform.get_anchorMax ()
    Code (CSharp):
    1. MissingMethodException: UnityEngine.Transform::GetParent()
    2. UnityEngine.Transform.get_parent ()
    3. UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild (UnityEngine.RectTransform rect)
    4. UnityEngine.UI.Graphic.SetLayoutDirty ()
    5. UnityEngine.UI.Graphic.SetAllDirty ()
    6. UnityEngine.UI.MaskableGraphic.OnEnable ()
    7. UnityEngine.UI.Image.OnEnable ()
    Any idea how this issue can occur and how to fix it? It doesn't occur everywhere, so there seems to be some condition that triggers it.
     
    Last edited: Jan 13, 2022
  2. AdamBebko

    AdamBebko

    Joined:
    Apr 8, 2016
    Posts:
    161
    same issue here