学员(7867)
课程(196)
分享
使用application.datapath的时候报错
There are inconsistent line endings in the 'Assets/FrameWork/Editor/AudioWinEditor.cs' script. Some are Mac OS X (UNIX) and some are Windows.
这个怎么解决?
你这个是警告吧
可以解决,也可以选择忽略,不影响
解决方案:
http://www.jianshu.com/p/4a91194c3593
老师是我传错了,get_dataPath is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'DockArea'. See "Script Serialization" page in the Unity Manual for further details.
是这个问题
dataPath 的调用位置有问题,可以吧它的调用放在OnEnable中
好的,谢谢老师