Search Unity

Allow ordering of IConvertGameObjectToEntity behaviours.

Discussion in 'Entity Component System' started by wusticality, Oct 22, 2020.

  1. wusticality

    wusticality

    Joined:
    Dec 15, 2016
    Posts:
    71
    I have a lot of
    IConvertGameObjectToEntity
    MonoBehaviour
    's in my code and they are often order dependent. Could you add a custom attribute so that we could control the order that these conversion monobehaviours are called?

    Ideally, we'd just use
    UpdateBefore
    and
    UpdateAfter
    like we do with systems.
     
  2. brunocoimbra

    brunocoimbra

    Joined:
    Sep 2, 2015
    Posts:
    679
    AFAIK they are called in the order that they are currently in the inspector, but never really debugged to see if that's the case