mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +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 () {
|
void CreateAnimationReferenceAssets () {
|
||||||
const string AssetFolderName = "ReferenceAssets";
|
const string AssetFolderName = "ReferenceAssets";
|
||||||
string parentFolder = AssetDatabase.GetAssetPath(targetSkeletonDataAsset);
|
string parentFolder = System.IO.Path.GetDirectoryName(AssetDatabase.GetAssetPath(targetSkeletonDataAsset));
|
||||||
string dataPath = System.IO.Path.GetDirectoryName(parentFolder) + "/" + AssetFolderName;
|
string dataPath = parentFolder + "/" + AssetFolderName;
|
||||||
if (!AssetDatabase.IsValidFolder(dataPath)) {
|
if (!AssetDatabase.IsValidFolder(dataPath)) {
|
||||||
AssetDatabase.CreateFolder(parentFolder, AssetFolderName);
|
AssetDatabase.CreateFolder(parentFolder, AssetFolderName);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user