We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在Assets/Scripts/UI/CustomSkin.cs的Start函数中,对自定义皮肤的目录位置是这样定义的:
Assets/Scripts/UI/CustomSkin.cs
Start
var path = new DirectoryInfo(Application.dataPath).Parent.FullName + "/Skin/"
我不清楚这条代码在Windows下的运行结果,但在macOS下,由于之后的引用中文件名开头同样带有/符号,例如"/tap.png",这会导致错误的目录引用,即../Skin//tap.png,导致对皮肤文件的引用失败。
/
"/tap.png"
../Skin//tap.png
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
在
Assets/Scripts/UI/CustomSkin.cs
的Start
函数中,对自定义皮肤的目录位置是这样定义的:我不清楚这条代码在Windows下的运行结果,但在macOS下,由于之后的引用中文件名开头同样带有
/
符号,例如"/tap.png"
,这会导致错误的目录引用,即../Skin//tap.png
,导致对皮肤文件的引用失败。The text was updated successfully, but these errors were encountered: