0
点赞
收藏
分享

微信扫一扫

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

一叶轻舟okok 2022-03-30 阅读 165
unity

可能报错:

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 条评论