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.

Other SerializeReference self loop crash

Discussion in 'Editor & General Support' started by Gogzy, Jun 12, 2023.

  1. Gogzy

    Gogzy

    Joined:
    Sep 17, 2021
    Posts:
    6
    ^When I will be sure that it isnt my fault I will mark it as a bug.
    Im writing a simple tool for state machines creation and whenever my data container (ScriptableObject) contains self referncing loop in it with SerliazeReference (transition have reference to origin and destination state, and states have refernces to transitions from and to them), then any change made within that SO while having my custom editor window opened (only when it is opened) couses unity to fall in some sort of loop. Popup windnow says it is waiting for unity to execute its code... forever.
    This crash happens whenever reference loop is already present, editor window is opened and:
    a) some code of the window changes any value in SO
    b) value of any binded element, or a property to which it is binded changes
    c) manually ApplyModifiedProperties() is invoked.
    Im losing my mind debugging this, please help my find root of it or confirm it is Unity bug ;-;
     
  2. Gogzy

    Gogzy

    Joined:
    Sep 17, 2021
    Posts:
    6
    Can confirm that it is a Unity bug, so I already reported it on UITK forum, as it is coused by property bindings