This commit is contained in:
2025-05-28 23:44:04 +09:00
parent b96ae8a277
commit 1e396ca15a
82 changed files with 4225 additions and 16 deletions

View File

@@ -1,4 +1,6 @@
using System.Collections;
using Studio.AssetTool;
using Studio.Manage;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using TriLibCore;
@@ -43,10 +45,10 @@ namespace Studio.Util
matrixConverter = new MatrixConverter();
}
void Update()
{
DrawMeshInstancedOnUpdate();
}
//void Update()
//{
// DrawMeshInstancedOnUpdate();
//}
private void OnDestroy()
{
Destroy(loadedObject);
@@ -83,6 +85,11 @@ namespace Studio.Util
{
loadedObject = assetLoaderContext.RootGameObject;
isLoadComplete = true;
OnLoadComplete();
Texture2D thumbnail = RuntimePreviewGenerator.GenerateModelPreview(loadedObject.transform, 320, 200);
thumbnail = TextureUtil.MakeReadableTexture(thumbnail);
this.thumbnail = thumbnail;
ManagerHub.instance.Get<FBXFileManager>().OnLoadComplete(this);
Debug.Log("Materials loaded. Model fully loaded.");
}
private void OnLoad(AssetLoaderContext assetLoaderContext)