Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unknown Type ID error

Discussion in 'Project Tiny' started by hakankaraduman, Dec 8, 2018.

  1. hakankaraduman

    hakankaraduman

    Joined:
    Aug 27, 2012
    Posts:
    336
  2. etienne_unity

    etienne_unity

    Unity Technologies

    Joined:
    Aug 31, 2017
    Posts:
    54
    Hi @hakankaraduman

    Which Unity version were you using?

    As a workaround, you can try to close the Tiny project and re-import the project folder (right-click on the folder in the Project window, and select Reimport).
     
  3. hakankaraduman

    hakankaraduman

    Joined:
    Aug 27, 2012
    Posts:
    336
    Hi @etienne_unity My version is 2018.3.0f1. I downloaded it from the unity hub if that matters. I tried your workaround suggestion but still the same error.
     
  4. sean_unity746

    sean_unity746

    Unity Technologies

    Joined:
    Sep 19, 2017
    Posts:
    4
    Hi @hakankaraduman

    Are you getting this issue with a new project?

    e.g.

    1) Create a new Unity Project
    2) Add the Tiny Package
    3) Import Samples
     
  5. hakankaraduman

    hakankaraduman

    Joined:
    Aug 27, 2012
    Posts:
    336
    Yes I was getting with a new project.

    I tried those 3 steps again. It gave the same error after I create a custom Component. But then I deleted all other samples from the tiny samples folder and reimported all the project, and it worked. Thank you both
     
  6. Berzee

    Berzee

    Joined:
    Sep 3, 2013
    Posts:
    11
    I had an error like that when I assigned a custom Component to an Entity, then deleted the Component and created it again with the same name. The Entity didn't update to use the new version of the Component automatically, instead pointing to the old deleted one -- but the error message didn't really point in the right direction, I just had to click around until I found the Entity with the big red alert in the inspector view.

    No way to know now if this was the same reason you saw the unknown type id error :) but that's how I was getting it. Here's a screenshot of a Camera entity with both an old, deleted MyComponent reference AND a new, existing MyComponent added at the same time:
    upload_2018-12-11_9-40-28.png
    And the resulting error on startup (you can see the full error in the console too but only if "clear on play" is turned off -- and it doesn't lead you back to the offending Entity anyway):
    upload_2018-12-11_9-41-52.png
     
    Last edited: Dec 11, 2018
  7. hakankaraduman

    hakankaraduman

    Joined:
    Aug 27, 2012
    Posts:
    336
    @Berzee I see, I saw the same red error on inspector when I deleted the component but since I tried so many things, I can't remember the exact flow I took. So the reason could be about anything in my case :)