Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

自定义皮肤的目录位置引用错误 #170

@HanasakiMana

Description

@HanasakiMana

Assets/Scripts/UI/CustomSkin.csStart函数中,对自定义皮肤的目录位置是这样定义的:

var path = new DirectoryInfo(Application.dataPath).Parent.FullName + "/Skin/"

我不清楚这条代码在Windows下的运行结果,但在macOS下,由于之后的引用中文件名开头同样带有/符号,例如"/tap.png",这会导致错误的目录引用,即../Skin//tap.png,导致对皮肤文件的引用失败。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions