mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-18 04:51:47 +08:00
[unity] Fix new folders AnimationReferenceAsset.
This commit is contained in:
parent
9791d3a0d5
commit
3b750c2612
@ -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