Merge pull request '불러온 에셋이 정상적으로 렌더링 되지 않는 오류수정' (#99) from jym/250526_03 into main
Reviewed-on: http://220.90.135.190:3000/UVCXR/Studio/pulls/99
This commit was merged in pull request #99.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user