diff --git a/Assets/Scripts/Studio/AssetTool/CustomAssetDataRepository.cs b/Assets/Scripts/Studio/AssetTool/CustomAssetDataRepository.cs index 1a8d5312..acea99eb 100644 --- a/Assets/Scripts/Studio/AssetTool/CustomAssetDataRepository.cs +++ b/Assets/Scripts/Studio/AssetTool/CustomAssetDataRepository.cs @@ -41,7 +41,7 @@ namespace XED.Repositories return p != null; } - private CustomAssetData FindFromName(string name) + public CustomAssetData FindFromName(string name) { return assetDatas.Find(data => data.assetName == name); } diff --git a/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs b/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs index ae944264..bde91dab 100644 --- a/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs +++ b/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs @@ -38,6 +38,7 @@ namespace XED.Manage messagePacker.Initialize(); identifier = string.IsNullOrEmpty(identifier) ? "defaultAssetData" : identifier; + fbxAnchor = new GameObject("LocalAssetDataAnchor").transform; } public override void Init() { @@ -91,7 +92,7 @@ namespace XED.Manage public CustomAssetData GetCustomAssetData(string name) { - return dataRepo.FindFromPath(name); + return dataRepo.FindFromName(name); //return listAssets.FirstOrDefault(x => x.name == name); }