Search Unity

Question Create gameobject or asset via code in editor mode should Click once to active?

Discussion in 'Scripting' started by ununion, May 19, 2021.

  1. ununion

    ununion

    Joined:
    Dec 2, 2018
    Posts:
    275
    Some times i create material asset to save in project then the asset is not show correct effect,i should find it in Project window and click the asset once then it will work.
    Another example,i m using some effect and if I create prefab camera via code the effect not work,and I must click it in hierarchy then it will work.
    why?