Search Unity

Why scriptable object does not activated when unity start?

Discussion in 'Scripting' started by leegod, Oct 13, 2019.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    I get some scriptable object for monster's various values,

    After make it and input various values, turn off unity editor, and then start editor again,

    then the scriptable object shows no script there. (yellow warning)

    After play game once, it becomes normal and shows all values correctly input previously.

    Why this happen and how to fix it?
     
  2. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    If all else fails close Unity, delete Obj/Library and open the Project again. Careful: Depending on the size of your project a complete reimport will take some time.
     
  3. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    Tried same, but does not work... delete Obj/Library folder and open project again, still the scriptable object shows yellow warning (script not compiled) until play game once.