From df2140212bc79aa07cc068554423d08de7def08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=98=81=EB=AF=BC?= <117150306+jym04@users.noreply.github.com> Date: Mon, 26 May 2025 11:41:17 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=EB=9F=AC=EC=98=A8=20=EC=97=90?= =?UTF-8?q?=EC=85=8B=EC=9D=B4=20=EC=A0=95=EC=83=81=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=A0=8C=EB=8D=94=EB=A7=81=20=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Studio/AssetTool/FBXFileManager.cs | 3 ++- Assets/Scripts/Studio/DataStructures/CustomAssetData.cs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs b/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs index dd27aff6..b5a05925 100644 --- a/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs +++ b/Assets/Scripts/Studio/AssetTool/FBXFileManager.cs @@ -85,6 +85,7 @@ namespace Studio.AssetTool assetData.LoadLocalFBX(file); yield return new WaitUntil(() => (assetData.isLoadComplete == true && assetData.progress == 1) || assetData.isLoadError == true); + assetData.OnLoadComplete(); Texture2D thumbnail = RuntimePreviewGenerator.GenerateModelPreview(assetData.loadedObject.transform, 320, 200); thumbnail = TextureUtil.MakeReadableTexture(thumbnail); @@ -218,6 +219,7 @@ namespace Studio.AssetTool assetData.loadedObject = modelData.LoadModelData(sharedMaterial); assetData.thumbnail = thumbnail; + assetData.OnLoadComplete(); OnLoadComplete(assetData); //assetData.onLoadProgress.RemoveAllListeners(); @@ -226,7 +228,6 @@ namespace Studio.AssetTool void OnLoadComplete(CustomAssetData assetData) { - assetData.OnLoadComplete(); string folderName = assetData.folderName; dataRepo.Add(assetData); //listAssets.Add(assetData); diff --git a/Assets/Scripts/Studio/DataStructures/CustomAssetData.cs b/Assets/Scripts/Studio/DataStructures/CustomAssetData.cs index 57ecad56..0c239219 100644 --- a/Assets/Scripts/Studio/DataStructures/CustomAssetData.cs +++ b/Assets/Scripts/Studio/DataStructures/CustomAssetData.cs @@ -123,6 +123,9 @@ namespace Studio.Util } } mat.enableInstancing = true; + var color = mat.color; + color.a = 1f; + mat.color = color; materials.Add(mat); } renderer.sharedMaterials = materials.ToArray();