Search Unity

Feedback Please provide a way to rebuild the enetity cache of subscenes

Discussion in 'Entity Component System' started by bjarkeck, Jan 20, 2020.

  1. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    301
    The entity cache of subscenes gets out of date and broken... All the time!

    I think it mainly happen when you pull in changes from git or otherwise get changes to your scene without going through the inspector. The values will be one thing in the inspector and another thing in the entity debugger after closing the scene.

    We've tried marking every object dirty to see if we could make a script that resets it, we've tried deleting the entity cache, re-importing the scene, yet none of those things will trigger it to rebuild the cache and update the values in it.

    You have to be really aggressive to over come this, by for instance doing a complete reimport + close Unity and delete the cache data. Sometimes adding the [ConverterVersion("fooo", 999)] and changing its values works.
    • Have any of you experienced this and how did you deal with it?
    • Is there a way to get the old behavior back, where it did a complete re import every time?
     
    MNNoxMortem likes this.