Fix prefab overwrite.

This commit is contained in:
max
2021-01-18 22:59:57 +01:00
parent f9a50c8c3a
commit 94f97c218a
4 changed files with 66 additions and 44 deletions

View File

@ -43,5 +43,10 @@ namespace TAO.VertexAnimation.Editor
}
}
}
public static bool HasAsset(string path, System.Type type)
{
return (AssetDatabase.LoadAssetAtPath(path, type) ? true : false);
}
}
}