Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(196评价)
价格: 4049.00元
编程框架获取dataPath问题
栩栩儒生发起了问答2017-09-21
4
回复
1668
浏览

使用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.

这个怎么解决?

所有回复
  • siki 2017-09-21

    你这个是警告吧

    可以解决,也可以选择忽略,不影响

    解决方案:

    http://www.jianshu.com/p/4a91194c3593

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 栩栩儒生 2017-09-21

    老师是我传错了,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.

    是这个问题

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2017-09-22

    dataPath 的调用位置有问题,可以吧它的调用放在OnEnable中

    还有-4条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!