This commit is contained in:
wsh
2025-05-28 19:45:22 +09:00
parent 33072ef3e7
commit 56110f32e4
2 changed files with 5 additions and 11 deletions

View File

@@ -124,7 +124,7 @@ public static class RuntimePreviewGenerator
set { m_padding = Mathf.Clamp( value, -0.25f, 0.25f ); }
}
private static Color m_backgroundColor = new Color( 0.3f, 0.3f, 0.3f, 1f );
private static Color m_backgroundColor = Color.white;
public static Color BackgroundColor
{
get { return m_backgroundColor; }

View File

@@ -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.");
}