【问题记录】No script asset for ***. Asset文件丢失

阅读 165

2022-03-30

可能报错:

1. The referenced script (***) on this Behaviour is missing!

(继承MonoBehaviour或ScriptableObject都会有这个报错)

2. The associated script can not be loaded. Please fix any compile errors and assign a valid script.

3. No script asset for ***. Check that the definition is in a file of the same name and that it compiles properly.

原因:

public class AppConfigSettingData : ScriptableObject
{
}

AppConfigSettingData类名必须与C#文件AppConfigSettingData.cs同名,修改cs文件名与类名一致即可

精彩评论(0)

0 0 举报