1
This commit is contained in:
@@ -43,11 +43,10 @@ namespace Studio.Util
|
||||
matrixConverter = new MatrixConverter();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
//void Update()
|
||||
//{
|
||||
// DrawMeshInstancedOnUpdate();
|
||||
//}
|
||||
void Update()
|
||||
{
|
||||
DrawMeshInstancedOnUpdate();
|
||||
}
|
||||
private void OnDestroy()
|
||||
{
|
||||
Destroy(loadedObject);
|
||||
@@ -78,16 +77,11 @@ namespace Studio.Util
|
||||
{
|
||||
isLoading = true;
|
||||
this.progress = progress;
|
||||
if (isLoadComplete == false && progress < 1.0f)
|
||||
{
|
||||
onLoadProgress?.Invoke(progress);
|
||||
}
|
||||
Debug.Log($"Loading Model. Progress: {progress:P}");
|
||||
}
|
||||
private void OnMaterialsLoad(AssetLoaderContext assetLoaderContext)
|
||||
{
|
||||
loadedObject = assetLoaderContext.RootGameObject;
|
||||
onLoadProgress?.Invoke(1.0f);
|
||||
isLoadComplete = true;
|
||||
Debug.Log("Materials loaded. Model fully loaded.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user