Disable WebGl color space check

Because WebGL not support Liner Color Space
This commit is contained in:
orangeagain
2022-04-22 03:50:44 +08:00
committed by GitHub
parent e48d81d5a3
commit d58b349eb0

View File

@@ -12,7 +12,9 @@ namespace UniGLTF.EditorSettingsValidator
static UnityEditorSettingsValidatorWindow()
{
#if !UNITY_WEBGL
EditorApplication.update += Validate;
#endif
}
private static void Validate()
@@ -26,7 +28,9 @@ namespace UniGLTF.EditorSettingsValidator
private void OnProjectChange()
{
#if !UNITY_WEBGL
Validate();
#endif
}
private void OnGUI()
@@ -95,4 +99,4 @@ namespace UniGLTF.EditorSettingsValidator
}
}
}
}
}