mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Fix new folders AnimationReferenceAsset.
This commit is contained in:
parent
ad224c4ef4
commit
c4c9743d8d
@ -229,8 +229,8 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
void CreateAnimationReferenceAssets () {
|
||||
const string AssetFolderName = "ReferenceAssets";
|
||||
string parentFolder = AssetDatabase.GetAssetPath(targetSkeletonDataAsset);
|
||||
string dataPath = System.IO.Path.GetDirectoryName(parentFolder) + "/" + AssetFolderName;
|
||||
string parentFolder = System.IO.Path.GetDirectoryName(AssetDatabase.GetAssetPath(targetSkeletonDataAsset));
|
||||
string dataPath = parentFolder + "/" + AssetFolderName;
|
||||
if (!AssetDatabase.IsValidFolder(dataPath)) {
|
||||
AssetDatabase.CreateFolder(parentFolder, AssetFolderName);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user