close

√ 錯誤碼:No MonoBehaviour scripts in the file, or their nemes do not match the file name.
 觀看Scripts時出現的錯誤,這會在Add Component新增腳本時找不到此Scripts。


 產生錯誤之原因為類別名稱與檔案名稱不相符,可能因更改檔案名字或其他原因而導致。
 如下圖兩個紅框處必須相符(左方為檔案名稱;右方為類別名稱)。

 更改完畢後重新Build後,錯誤即消失。
  

arrow
arrow
    文章標籤
    Unity 3D Script
    全站熱搜

    May 發表在 痞客邦 留言(0) 人氣()