
Unity3d笔记
游圣菜菜熊
本人比较菜
展开
-
AssetDatabase.LoadMainAssetAtPath 加载的文本内容为""
unity2018 --path:为目录下的一个文本文件 TextAsset txtAsset = AssetDatabase.LoadMainAssetAtPath(path) as TextAsset; 现象:读取文件成功, 但是读取到的字符串是""的. 原因: 目标文件的编码为ascii码. 解决办法:把目标文件的编码改为UTF-8. 不知道是为什么,但是这样解决是有效的 ...原创 2019-05-31 15:38:55 · 2624 阅读 · 0 评论 -
报错: The object of type 'Button' has been destroyed but you are still trying to access it
错误日志:MissingReferenceException: The object of type 'Button' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object...原创 2019-07-08 23:29:19 · 8464 阅读 · 0 评论