,.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user