Search Unity

Are Entity References null to other classes during Convert in IConvertGameObjectToEntity?

Discussion in 'Entity Component System' started by BigRookGames, Mar 24, 2021.

  1. BigRookGames

    BigRookGames

    Joined:
    Nov 24, 2014
    Posts:
    330
    When creating an entity from a GameObject can you save the entity reference to another class from within the Convert() execution? I am getting null ref when doing so but when walking through debug it is not null and throws the error regardless.

    -- Please disregard, the issue was the dictionary not initializing properly before trying to set it! Was not an entity issue.
     
    Last edited: Mar 24, 2021