mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 14:29:52 -05:00
Merge pull request #2311 from saturday06/suppress-CS1998-when-no-ktx
com.unity.cloud.ktxが無い場合にasyncメソッドでawaitが無い警告が出るのを抑制
This commit is contained in:
commit
4c3e922bce
|
|
@ -10,7 +10,9 @@ namespace VRMShaders
|
|||
{
|
||||
public sealed class KtxTextureDeserializer : ITextureDeserializer
|
||||
{
|
||||
#pragma warning disable 1998
|
||||
public async Task<Texture2D> LoadTextureAsync(DeserializingTextureInfo textureInfo, IAwaitCaller awaitCaller)
|
||||
#pragma warning restore 1998
|
||||
{
|
||||
#if USE_COM_UNITY_CLOUD_KTX
|
||||
if (textureInfo.ImageData == null) return null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user